@@ -16,28 +16,38 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
18
18
steps :
19
- - name : Checkout the code
20
- uses : actions/checkout@v4
21
-
22
- - name : Set up JDK 17
23
- uses : actions/setup-java@v3
24
- with :
25
- distribution : ' temurin'
26
- java-version : ' 17'
27
-
28
- - name : Grant execute permission for gradlew
29
- run : chmod +x gradlew
30
-
31
- - name : Check code style
32
- run : ./gradlew ktlintCheck --continue
33
-
34
- - name : Build with Gradle
35
- run : ./gradlew build
36
-
37
- - name : Upload a Build Artifact
38
-
39
- with :
40
- # Artifact name
41
- name : Notify.apk
42
- # A file, directory or wildcard pattern that describes what to upload
43
- path : app/build/outputs/apk/debug/app-debug.apk
19
+ - name : Checkout the code
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Set up JDK 17
23
+ uses : actions/setup-java@v3
24
+ with :
25
+ distribution : ' temurin'
26
+ java-version : ' 17'
27
+
28
+ - name : Grant execute permission for gradlew
29
+ run : chmod +x gradlew
30
+
31
+ - name : Check code style
32
+ run : ./gradlew ktlintCheck --continue
33
+
34
+ - name : Build with Gradle
35
+ run : ./gradlew build
36
+
37
+ - name : Cache Gradle dependencies
38
+ uses : actions/cache@v3
39
+ with :
40
+ path : |
41
+ ~/.gradle/caches
42
+ ~/.gradle/wrapper
43
+ key : gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
44
+ restore-keys : |
45
+ gradle-${{ runner.os }}-
46
+
47
+ - name : Upload a Build Artifact
48
+ uses : actions/upload-artifact@v4
49
+ with :
50
+ # Artifact name
51
+ name : Notify.apk
52
+ # A file, directory or wildcard pattern that describes what to upload
53
+ path : app/build/outputs/apk/debug/app-debug.apk
0 commit comments