File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Assemble
2
+
3
+ on : [push, workflow_dispatch]
4
+
5
+ jobs :
6
+ assemble :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+
12
+ - uses : actions/setup-java@v2
13
+ with :
14
+ distribution : ' adopt'
15
+ java-version : ' 8'
16
+
17
+ - name : Cache Gradle packages
18
+ uses : actions/cache@v2
19
+ with :
20
+ path : |
21
+ ~/.gradle/caches
22
+ ~/.gradle/wrapper
23
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
24
+ restore-keys : |
25
+ ${{ runner.os }}-gradle-
26
+
27
+ - name : Assemble release
28
+ run : ./gradlew assembleRelease
29
+
30
+ - name : Run lint for release
31
+ run : ./gradlew lintRelease
32
+
33
+ - name : Assemble debug
34
+ run : ./gradlew assembleDebug
35
+
36
+ - name : Run lint for debug
37
+ run : ./gradlew lintDebug
38
+
39
+ - name : Upload lint results
40
+ uses : actions/upload-artifact@v2
41
+ with :
42
+ name : lint-results
43
+ path : app/build/reports/lint-results-*.*
44
+
45
+ - name : Cleanup Gradle Cache
46
+ # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
47
+ # Restoring these files from a GitHub Actions cache might cause problems for future builds.
48
+ run : |
49
+ rm -f ~/.gradle/caches/modules-2/modules-2.lock
50
+ rm -f ~/.gradle/caches/modules-2/gc.properties
You can’t perform that action at this time.
0 commit comments