-
Notifications
You must be signed in to change notification settings - Fork 33
ci(musl): replace corepack with oxc-project/setup-node #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
80d5dbc
42e67ce
73e7ecc
ff71534
655c769
e88bd38
de1aa17
28aa8d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,18 +139,7 @@ jobs: | |
| - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 | ||
| if: ${{ matrix.target == 'x86_64-apple-darwin' }} | ||
|
|
||
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version-file: .node-version | ||
| architecture: x64 | ||
| if: ${{ matrix.target == 'x86_64-apple-darwin' }} | ||
|
|
||
| - uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This unconditional Useful? React with 👍 / 👎. |
||
| if: ${{ matrix.target != 'x86_64-apple-darwin' }} | ||
|
|
||
| # `pnpm install` prepares test bins used in snapshot tests | ||
| # Must run after setup-node so correct native binaries are installed | ||
| - run: pnpm install | ||
|
|
||
| - name: Run ignored tests | ||
| run: ${{ matrix.cargo_cmd }} test --target ${{ matrix.build_target }} -- --ignored | ||
|
|
@@ -201,10 +190,13 @@ jobs: | |
| - name: Run tests | ||
| run: cargo test | ||
|
|
||
| - name: Install pnpm and Node tools | ||
| run: | | ||
| corepack enable | ||
| pnpm install | ||
| # oxc-project/setup-node calls actions/setup-node, which only ships glibc | ||
| # Node binaries that can't run on Alpine's musl. The container's bundled | ||
| # Node is musl-native, so just install pnpm directly via npm. | ||
| - name: Install pnpm | ||
| run: npm install -g pnpm | ||
|
|
||
| - run: pnpm install | ||
|
|
||
| - name: Run ignored tests | ||
| run: cargo test -- --ignored | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change removes the only step that forced
architecture: x64for thex86_64-apple-darwinleg, but that leg still runs on an arm64 macOS runner and the inline comment explains the ignored tests require an x64 Node process (for the x86_64 fspy preload dylib under Rosetta). With onlyoxc-project/setup-node(no architecture input), Node defaults to runner architecture, so the x86_64 matrix can execute ignored tests against arm64 Node and fail.Useful? React with 👍 / 👎.