Skip to content

Commit 0f0b4e2

Browse files
authored
Fix Apple deployment for Intel CPUs (#4073)
1 parent ee049dc commit 0f0b4e2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,28 +443,28 @@ jobs:
443443
steps:
444444
- uses: actions/checkout@v4
445445
- run: rustup update --no-self-update stable && rustup default stable
446-
- run: cargo build --manifest-path crates/cli/Cargo.toml --release
446+
- run: rustup target add x86_64-apple-darwin
447+
- run: cargo build --manifest-path crates/cli/Cargo.toml --target x86_64-apple-darwin --release
447448
env:
448449
MACOSX_DEPLOYMENT_TARGET: 10.7
449450
- uses: actions/upload-artifact@v4
450451
with:
451452
name: dist_macos_x86_64
452-
path: "target/release/wasm*"
453+
path: "target/x86_64-apple-darwin/release/wasm*"
453454

454455
dist_macos_aarch64:
455456
runs-on: macos-latest
456457
steps:
457458
- uses: actions/checkout@v4
458459
- run: rustup update --no-self-update stable && rustup default stable
459-
- run: rustup target add aarch64-apple-darwin
460460
- run: |
461-
cargo build --manifest-path crates/cli/Cargo.toml --target aarch64-apple-darwin --release
461+
cargo build --manifest-path crates/cli/Cargo.toml --release
462462
env:
463463
MACOSX_DEPLOYMENT_TARGET: 10.7
464464
- uses: actions/upload-artifact@v4
465465
with:
466466
name: dist_macos_aarch64
467-
path: "target/aarch64-apple-darwin/release/wasm*"
467+
path: "target/release/wasm*"
468468

469469
dist_windows:
470470
runs-on: windows-latest

0 commit comments

Comments
 (0)