Skip to content

Commit 0ad113a

Browse files
committed
[BOOK-381] chore: CI 플로우 개선
병렬 실행, OS 통일, JDK 버전 통일, 설정 일관
1 parent 365c5f9 commit 0ad113a

1 file changed

Lines changed: 22 additions & 12 deletions

File tree

.github/workflows/android-ci.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24-
- name: Setup JDK 17
24+
- name: Setup JDK 21
2525
uses: actions/setup-java@v4
2626
with:
2727
distribution: 'corretto'
28-
java-version: 17
28+
java-version: 21
2929

3030
- name: Setup Android SDK
3131
uses: android-actions/setup-android@v2
@@ -53,11 +53,27 @@ jobs:
5353

5454
stability_check:
5555
name: Compose Stability Check
56-
runs-on: macos-latest
57-
needs: ci-build
56+
runs-on: ubuntu-latest
57+
58+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
59+
5860
steps:
59-
- name: Check out code
60-
uses: actions/checkout@v5
61+
- name: Checkout
62+
uses: actions/checkout@v4
63+
64+
- name: Setup JDK 21
65+
uses: actions/setup-java@v4
66+
with:
67+
distribution: 'corretto'
68+
java-version: 21
69+
70+
- name: Setup Android SDK
71+
uses: android-actions/setup-android@v2
72+
73+
- name: Setup Gradle
74+
uses: gradle/gradle-build-action@v2
75+
with:
76+
gradle-home-cache-cleanup: true
6177

6278
- name: Generate local.properties
6379
run: echo '${{ secrets.LOCAL_PROPERTIES }}' | base64 -d > ./local.properties
@@ -68,11 +84,5 @@ jobs:
6884
- name: Generate google-services.json
6985
run: echo '${{ secrets.GOOGLE_SERVICES }}' | base64 -d > ./app/google-services.json
7086

71-
- name: Set up JDK
72-
uses: actions/setup-java@v5
73-
with:
74-
distribution: 'zulu'
75-
java-version: 21
76-
7787
- name: Compose Stability Check
7888
run: ./gradlew stabilityCheck

0 commit comments

Comments
 (0)