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