devops: Use buildcache for iOS builds (#131)

* Use buildcache for iOS builds

from https://github.com/mikehardy/buildcache-action

* Update build-ios.yml

* Update build-ios.yml

* Specify compiler options to make buildcache work

* Update build-ios.yml
This commit is contained in:
Marc Rousavy 2021-05-05 15:28:14 +02:00 committed by GitHub
parent c3ff25de41
commit 9f956a6f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,9 @@ jobs:
- name: Install node_modules for example/ - name: Install node_modules for example/
run: yarn install --frozen-lockfile --cwd .. run: yarn install --frozen-lockfile --cwd ..
- name: Restore buildcache
uses: mikehardy/buildcache-action@v1
- name: Setup Ruby (bundle) - name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
@ -61,6 +64,8 @@ jobs:
run: bundle exec pod check || bundle exec pod install run: bundle exec pod check || bundle exec pod install
- name: Build App - name: Build App
run: "xcodebuild \ run: "xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath ios/build -UseModernBuildSystem=YES \
-workspace VisionCameraExample.xcworkspace \ -workspace VisionCameraExample.xcworkspace \
-scheme VisionCameraExample \ -scheme VisionCameraExample \
-sdk iphonesimulator \ -sdk iphonesimulator \