Skip to content

Commit

Permalink
ci: add Android build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 6, 2024
1 parent 23db283 commit 78006cf
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,21 @@ jobs:
distribution: zulu
java-version: 21

- name: Cache Android Build
uses: actions/cache@v4
id: android-build-cache
with:
path: |
./packages/react-native-app/android/.gradle
./packages/react-native-app/android/app/build
./packages/react-native-app/android/build
key: ${{ runner.os }}-android-build--${{ github.workflow }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-android-build--${{ github.workflow }}-${{ github.sha }}
${{ runner.os }}-android-build--${{ github.workflow }}-
- name: Build Android
if: steps.android-build-cache.outputs.cache-hit != 'true'
run: yarn react-native build-android --mode release --tasks assembleRelease

- name: Upload Android App
Expand Down Expand Up @@ -194,12 +208,6 @@ jobs:
name: ios-app
path: ./packages/react-native-app/ios

- name: Check Artifact
run: |
ls -la
cd ios
ls -la
- name: Install on iOS Simulator
run: |
xcrun simctl boot "iPhone 15 Pro"
Expand Down

0 comments on commit 78006cf

Please sign in to comment.