File tree Expand file tree Collapse file tree 1 file changed +26
-8
lines changed
Expand file tree Collapse file tree 1 file changed +26
-8
lines changed Original file line number Diff line number Diff line change 11name : Codeboard Android CI New
2+
23on : [push]
34
45jobs :
56 build :
6-
77 runs-on : windows-latest
88
99 steps :
10- - uses : actions/checkout@v1
10+ - name : Checkout code
11+ uses : actions/checkout@v4
12+
13+ - name : Set up Java 17
14+ uses : actions/setup-java@v4
15+ with :
16+ distribution : ' temurin'
17+ java-version : ' 17'
18+
19+ - name : Cache Gradle files
20+ uses : actions/cache@v3
21+ with :
22+ path : |
23+ ~/.gradle/caches
24+ ~/.gradle/wrapper
25+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
26+ restore-keys : |
27+ ${{ runner.os }}-gradle-
28+
1129 - name : Build with Gradle
1230 run : |
13- $env:JAVA_HOME = "$env:JAVA_HOME_17_X64"
14- ./gradlew assemble
15- dir .
16- - uses : actions/upload-artifact@v4
31+ ./gradlew.bat assemble --stacktrace
32+
33+ - name : Upload APKs
34+ uses : actions/upload-artifact@v4
1735 with :
1836 name : apk
19- path : app/build/outputs
20- retention-days : 1
37+ path : app/build/outputs/apk/
38+ retention-days : 1
You can’t perform that action at this time.
0 commit comments