|
31 | 31 |
|
32 | 32 | env: |
33 | 33 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
34 | | - JAVA_VERSION: 21 |
35 | 34 | GITHUB_ACTION_RUN_URL: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" |
36 | 35 | DISTRIBUTE_TO_FIREBASE: ${{ inputs.distribute-to-firebase || github.event_name == 'push' }} |
37 | 36 | PUBLISH_TO_PLAY_STORE: ${{ inputs.publish-to-play-store || github.event_name == 'push' }} |
|
67 | 66 | with: |
68 | 67 | persist-credentials: false |
69 | 68 |
|
70 | | - - name: Validate Gradle wrapper |
71 | | - uses: gradle/actions/wrapper-validation@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
72 | | - |
73 | | - - name: Cache Gradle files |
74 | | - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 |
75 | | - with: |
76 | | - path: | |
77 | | - ~/.gradle/caches |
78 | | - ~/.gradle/wrapper |
79 | | - key: ${{ runner.os }}-gradle-v2-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml') }} |
80 | | - restore-keys: | |
81 | | - ${{ runner.os }}-gradle-v2- |
82 | | -
|
83 | | - - name: Cache build output |
84 | | - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 |
85 | | - with: |
86 | | - path: | |
87 | | - ${{ github.workspace }}/build-cache |
88 | | - key: ${{ runner.os }}-build-cache-${{ github.sha }} |
89 | | - restore-keys: | |
90 | | - ${{ runner.os }}-build- |
91 | | -
|
92 | | - - name: Configure JDK |
93 | | - uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 |
94 | | - with: |
95 | | - distribution: "temurin" |
96 | | - java-version: ${{ env.JAVA_VERSION }} |
97 | | - |
98 | | - - name: Configure Ruby |
99 | | - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 |
100 | | - with: |
101 | | - bundler-cache: true |
102 | | - |
103 | | - - name: Install Fastlane |
104 | | - run: | |
105 | | - bundle config path vendor/bundle |
106 | | - bundle install --jobs 4 --retry 3 |
| 69 | + - name: Setup Android Build |
| 70 | + uses: ./.github/actions/setup-android-build |
107 | 71 |
|
108 | 72 | - name: Check |
109 | 73 | run: bundle exec fastlane check |
@@ -137,16 +101,6 @@ jobs: |
137 | 101 | with: |
138 | 102 | persist-credentials: false |
139 | 103 |
|
140 | | - - name: Configure Ruby |
141 | | - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 |
142 | | - with: |
143 | | - bundler-cache: true |
144 | | - |
145 | | - - name: Install Fastlane |
146 | | - run: | |
147 | | - bundle config path vendor/bundle |
148 | | - bundle install --jobs 4 --retry 3 |
149 | | -
|
150 | 104 | - name: Log in to Azure |
151 | 105 | uses: bitwarden/gh-actions/azure-login@main |
152 | 106 | with: |
@@ -199,33 +153,8 @@ jobs: |
199 | 153 | - name: Log out from Azure |
200 | 154 | uses: bitwarden/gh-actions/azure-logout@main |
201 | 155 |
|
202 | | - - name: Validate Gradle wrapper |
203 | | - uses: gradle/actions/wrapper-validation@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
204 | | - |
205 | | - - name: Cache Gradle files |
206 | | - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 |
207 | | - with: |
208 | | - path: | |
209 | | - ~/.gradle/caches |
210 | | - ~/.gradle/wrapper |
211 | | - key: ${{ runner.os }}-gradle-v2-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml') }} |
212 | | - restore-keys: | |
213 | | - ${{ runner.os }}-gradle-v2- |
214 | | -
|
215 | | - - name: Cache build output |
216 | | - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 |
217 | | - with: |
218 | | - path: | |
219 | | - ${{ github.workspace }}/build-cache |
220 | | - key: ${{ runner.os }}-build-cache-${{ github.sha }} |
221 | | - restore-keys: | |
222 | | - ${{ runner.os }}-build- |
223 | | -
|
224 | | - - name: Configure JDK |
225 | | - uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 |
226 | | - with: |
227 | | - distribution: "temurin" |
228 | | - java-version: ${{ env.JAVA_VERSION }} |
| 156 | + - name: Setup Android Build |
| 157 | + uses: ./.github/actions/setup-android-build |
229 | 158 |
|
230 | 159 | - name: Update app CI Build info |
231 | 160 | run: | |
@@ -455,16 +384,6 @@ jobs: |
455 | 384 | with: |
456 | 385 | persist-credentials: false |
457 | 386 |
|
458 | | - - name: Configure Ruby |
459 | | - uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 |
460 | | - with: |
461 | | - bundler-cache: true |
462 | | - |
463 | | - - name: Install Fastlane |
464 | | - run: | |
465 | | - bundle config path vendor/bundle |
466 | | - bundle install --jobs 4 --retry 3 |
467 | | -
|
468 | 387 | - name: Log in to Azure |
469 | 388 | uses: bitwarden/gh-actions/azure-login@main |
470 | 389 | with: |
@@ -503,33 +422,8 @@ jobs: |
503 | 422 | - name: Log out from Azure |
504 | 423 | uses: bitwarden/gh-actions/azure-logout@main |
505 | 424 |
|
506 | | - - name: Validate Gradle wrapper |
507 | | - uses: gradle/actions/wrapper-validation@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
508 | | - |
509 | | - - name: Cache Gradle files |
510 | | - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 |
511 | | - with: |
512 | | - path: | |
513 | | - ~/.gradle/caches |
514 | | - ~/.gradle/wrapper |
515 | | - key: ${{ runner.os }}-gradle-v2-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml') }} |
516 | | - restore-keys: | |
517 | | - ${{ runner.os }}-gradle-v2- |
518 | | -
|
519 | | - - name: Cache build output |
520 | | - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 |
521 | | - with: |
522 | | - path: | |
523 | | - ${{ github.workspace }}/build-cache |
524 | | - key: ${{ runner.os }}-build-cache-${{ github.sha }} |
525 | | - restore-keys: | |
526 | | - ${{ runner.os }}-build- |
527 | | -
|
528 | | - - name: Configure JDK |
529 | | - uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 |
530 | | - with: |
531 | | - distribution: "temurin" |
532 | | - java-version: ${{ env.JAVA_VERSION }} |
| 425 | + - name: Setup Android Build |
| 426 | + uses: ./.github/actions/setup-android-build |
533 | 427 |
|
534 | 428 | - name: Update app CI Build info |
535 | 429 | run: | |
|
0 commit comments