Skip to content

Commit 344c14a

Browse files
branchseerclaude
andcommitted
ci: use macos-latest with Rosetta for x86_64 target
Install x64 node on arm64 runner so fspy preload dylib (x86_64) can be injected into node processes running under Rosetta. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff698b1 commit 344c14a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
target: x86_64-pc-windows-msvc
5454
- os: macos-latest
5555
target: aarch64-apple-darwin
56-
- os: macos-26-intel
56+
- os: macos-latest
5757
target: x86_64-apple-darwin
5858
runs-on: ${{ matrix.os }}
5959
steps:
@@ -91,7 +91,15 @@ jobs:
9191
continue-on-error: true
9292
run: cargo clippy --all-targets --all-features -- -D warnings
9393

94+
# For x86_64-apple-darwin on arm64 runner, install x64 node so fspy preload dylib
95+
# (compiled for x86_64) can be injected into node processes running under Rosetta.
96+
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
97+
with:
98+
architecture: x64
99+
if: ${{ matrix.target == 'x86_64-apple-darwin' }}
100+
94101
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
102+
if: ${{ matrix.target != 'x86_64-apple-darwin' }}
95103

96104
# `pnpm install` prepares test bins used in snapshot tests
97105
# Must run after setup-node so correct native binaries are installed

0 commit comments

Comments
 (0)