Skip to content

Commit

Permalink
ci: setup iOS build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 6, 2024
1 parent 9d7516b commit 7f72647
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,17 @@ jobs:
if: steps.cocoapods-cache.outputs.cache-hit != 'true'
run: yarn pod:install

- name: Cache iOS Build
uses: actions/cache@v4
id: ios-build-cache
with:
path: ./ios/build
key: ${{ runner.os }}-ios-build--${{ github.workflow }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-ios-build--${{ github.workflow }}-
- name: Build iOS
if: steps.ios-build-cache.outputs.cache-hit != 'true'
# Like `react-native build-ios --mode Release` but adapted for simulators
run: xcodebuild -workspace ios/MapLibreReactNativeExample.xcworkspace -scheme MapLibreReactNativeExample -configuration Release -sdk iphonesimulator -derivedDataPath ios/build

Expand Down

0 comments on commit 7f72647

Please sign in to comment.