Skip to content

Commit 1690c2a

Browse files
authored
ci: switch macOS CI to GitHub-hosted runners (#236)
1 parent 6c78c30 commit 1690c2a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
target: x86_64-unknown-linux-gnu
5252
- os: windows-latest
5353
target: x86_64-pc-windows-msvc
54-
- os: namespace-profile-mac-default
54+
- os: macos-latest
5555
target: aarch64-apple-darwin
56-
- os: namespace-profile-mac-default
56+
- os: macos-latest
5757
target: x86_64-apple-darwin
5858
runs-on: ${{ matrix.os }}
5959
steps:
@@ -91,8 +91,13 @@ jobs:
9191
continue-on-error: true
9292
run: cargo clippy --all-targets --all-features -- -D warnings
9393

94-
# Set up node and pnpm for running tests
95-
# For x86_64-apple-darwin, use x64 node for fspy tests that verify Node.js fs accesses
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+
# oxc-project/setup-node doesn't support the architecture input, so use
97+
# pnpm/action-setup + actions/setup-node directly.
98+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
99+
if: ${{ matrix.target == 'x86_64-apple-darwin' }}
100+
96101
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
97102
with:
98103
node-version-file: .node-version

0 commit comments

Comments
 (0)