Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): fix ios builds #36

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,31 @@ jobs:
bundler-cache: true
working-directory: ./package/example

- name: Restore Pods cache
uses: actions/cache@v4
with:
path: ./package/example/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-

- name: Pod install
run: pwd && bundle exec pod install
working-directory: ./package/example/ios

- name: Build iOS
run: yes | npx react-native build-ios --mode Debug
- name: Install xcpretty
run: gem install xcpretty
working-directory: ./package/example

- name: Build iOS
working-directory: ./package/example/ios
run: "set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace SkiaSkottieExample.xcworkspace \
-scheme SkiaSkottieExample \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \
build \
CODE_SIGNING_ALLOWED=NO | xcpretty"
Loading