Skip to content

Commit

Permalink
fix: Fix CI check for iOS, added parallel build for new & old archs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ichina authored Jun 15, 2024
1 parent 8f1bd9c commit 12f7d3e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build
on: push
on:
push:
pull_request:
branches:
- master

jobs:
lint:
Expand Down Expand Up @@ -73,6 +77,7 @@ jobs:
strategy:
matrix:
node-version: [20]
arch: ['NewArch', 'OldArch']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -85,9 +90,13 @@ jobs:
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Get arch value
run: echo "RCT_NEW_ARCH_ENABLED=${{ matrix.arch == 'NewArch' && '1' || '0' }}" >> $GITHUB_ENV
- name: Install Dependencies
run: yarn && yarn bootstrap
- name: Install Podfiles
run: cd example && npx pod-install
- name: Print React Native Info
run: cd example && npx react-native info
- name: Build example app
run: cd example && yarn ios
run: cd example && yarn ios --no-packager
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"react": "18.2.0",
"react-native": "^0.73.0",
"react-native-builder-bob": "^0.23.2",
"react-native-test-app": "^3.7.2",
"react-native-test-app": "^3.8.1",
"release-it": "^17.2.0",
"typescript": "5.4.5"
},
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2848,7 +2848,7 @@ __metadata:
react: "npm:18.2.0"
react-native: "npm:^0.73.0"
react-native-builder-bob: "npm:^0.23.2"
react-native-test-app: "npm:^3.7.2"
react-native-test-app: "npm:^3.8.1"
release-it: "npm:^17.2.0"
typescript: "npm:5.4.5"
peerDependencies:
Expand Down Expand Up @@ -10890,9 +10890,9 @@ __metadata:
languageName: node
linkType: hard

"react-native-test-app@npm:^3.7.2":
version: 3.7.2
resolution: "react-native-test-app@npm:3.7.2"
"react-native-test-app@npm:^3.8.1":
version: 3.8.1
resolution: "react-native-test-app@npm:3.8.1"
dependencies:
"@rnx-kit/react-native-host": "npm:^0.4.9"
ajv: "npm:^8.0.0"
Expand All @@ -10904,7 +10904,7 @@ __metadata:
peerDependencies:
"@callstack/react-native-visionos": 0.73 - 0.74
"@expo/config-plugins": ">=5.0"
react: 17.0.1 - 18.2
react: 17.0.1 - 18.3
react-native: 0.66 - 0.74 || >=0.75.0-0 <0.75.0
react-native-macos: ^0.0.0-0 || 0.66 || 0.68 || 0.71 - 0.73
react-native-windows: ^0.0.0-0 || 0.66 - 0.74
Expand All @@ -10922,7 +10922,7 @@ __metadata:
init: scripts/init.mjs
init-test-app: scripts/init.mjs
install-windows-test-app: windows/test-app.mjs
checksum: 10c0/c34869aec044805c499482d709b42328c1aa8a1477ccfe97b67cc8bc92e9084be4c6bd28f7c67cdad7669e27181c27dbc68f302145da76e239fd904051deac87
checksum: 10c0/5e2ba4537fe37697eca91975dd882ccbd44d101f99bca787ef3b16bd0980f96ef2b64d402dc94695d18cd4d0ae72c652fd378031f41618f289b45d8ce28a875e
languageName: node
linkType: hard

Expand Down

0 comments on commit 12f7d3e

Please sign in to comment.