Skip to content

Commit 17a4b07

Browse files
committed
fix: ci_build workflow
1 parent e062575 commit 17a4b07

File tree

1 file changed

+35
-25
lines changed

1 file changed

+35
-25
lines changed

.github/workflows/ci_build.yml

+35-25
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,38 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
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-
uses: actions/[email protected]
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

Comments
 (0)