Skip to content

Commit 362d9ed

Browse files
committed
Add x86_64-apple-ios as a default target on an Apple host
1 parent 172d7e8 commit 362d9ed

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.changeset/true-ideas-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ferric-cli": patch
3+
---
4+
5+
Add x86_64-apple-ios as a default target on an Apple host

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
uses: android-actions/setup-android@v3
9292
with:
9393
packages: tools platform-tools ndk;${{ env.NDK_VERSION }}
94-
- run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi i686-linux-android aarch64-apple-ios-sim
94+
- run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi i686-linux-android aarch64-apple-ios-sim x86_64-apple-ios
9595
- run: npm ci
9696
- run: npm run bootstrap
9797
- run: npm test
@@ -148,12 +148,12 @@ jobs:
148148
uses: hendrikmuhs/ccache-action@v1.2
149149
with:
150150
key: ${{ github.job }}-${{ runner.os }}
151-
- run: rustup target add aarch64-apple-ios-sim
151+
- run: rustup target add aarch64-apple-ios-sim x86_64-apple-ios
152152
- run: npm ci
153153
- run: npm run bootstrap
154154
env:
155155
CMAKE_RN_TRIPLETS: arm64;x86_64-apple-ios-sim
156-
FERRIC_TARGETS: aarch64-apple-ios-sim
156+
FERRIC_TARGETS: aarch64-apple-ios-sim,x86_64-apple-ios
157157
# Because the Xcode project injects its own CCACHE_CONFIGPATH,
158158
# the configuration set by the ccache action doesn't propagate.
159159
- name: Expose Ccache config to Xcode

packages/ferric/src/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ export const buildCommand = new Command("build")
207207
if (isAppleSupported()) {
208208
if (process.arch === "arm64") {
209209
targets.add("aarch64-apple-ios-sim");
210+
targets.add("x86_64-apple-ios");
210211
}
211212
}
212213
logNotice(

0 commit comments

Comments
 (0)