From 7f726475f5dd62a1cd3f1fa8599b98d9e5fea836 Mon Sep 17 00:00:00 2001 From: Kilian Finger Date: Fri, 6 Dec 2024 09:01:16 +0100 Subject: [PATCH] ci: setup iOS build cache --- .github/workflows/review.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index d4d4b3ba8..ff6331e25 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -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