@@ -54,31 +54,22 @@ jobs:
5454 include :
5555 - os : windows-latest
5656 target : x86_64-pc-windows-msvc
57-
5857 - os : windows-latest
5958 target : aarch64-pc-windows-msvc
60-
6159 - os : ubuntu-latest
6260 target : x86_64-unknown-linux-gnu
63-
6461 - os : ubuntu-latest
6562 target : x86_64-unknown-linux-musl
66-
6763 - os : ubuntu-latest
6864 target : aarch64-unknown-linux-gnu
69-
7065 - os : ubuntu-latest
7166 target : aarch64-unknown-linux-musl
72-
7367 - os : ubuntu-latest
7468 target : armv7-unknown-linux-gnueabihf
75-
7669 - os : macos-latest
7770 target : x86_64-apple-darwin
78-
7971 - os : macos-latest
8072 target : aarch64-apple-darwin
81-
8273 - os : ubuntu-latest
8374 target : wasm32-wasip1-threads
8475
8980
9081 - uses : ./.github/actions/pnpm
9182
92- - name : Add Rust Target
93- run : rustup target add ${{ matrix.target }}
83+ - run : rustup target add ${{ matrix.target }}
9484
9585 - uses : goto-bus-stop/setup-zig@abea47f85e598557f500fa1fd2ab7464fcb39406 # v2.2.1
9686 if : ${{ contains(matrix.target, 'musl') }}
@@ -103,58 +93,16 @@ jobs:
10393
10494 - name : Build with napi cross
10595 if : ${{ contains(matrix.target, 'gnu') }}
96+ env :
97+ CC : clang # for mimalloc
10698 run : pnpm build --use-napi-cross --target ${{ matrix.target }}
10799
108100 - name : Build
109101 if : ${{ !contains(matrix.target, 'gnu') && !contains(matrix.target, 'musl') }}
102+ env :
103+ CC : clang # for mimalloc
110104 run : pnpm build --target ${{ matrix.target }}
111105
112- - name : Test
113- # if: matrix.target == 'x86_64-pc-windows-msvc' || matrix.target == 'aarch64-apple-darwin' || matrix.target == 'wasm32-wasip1-threads'
114- if : matrix.target == 'x86_64-unknown-linux-gnu'
115- run : pnpm test
116-
117- - name : Output docker params
118- if : ${{ contains(matrix.target, 'linux') }}
119- id : docker
120- run : |
121- node -e "
122- if ('${{ matrix.target }}'.startsWith('aarch64')) {
123- console.log('PLATFORM=linux/arm64')
124- } else if ('${{ matrix.target }}'.startsWith('armv7')) {
125- console.log('PLATFORM=linux/arm/v7')
126- } else {
127- console.log('PLATFORM=linux/amd64')
128- }
129- " >> $GITHUB_OUTPUT
130- node -e "
131- if ('${{ matrix.target }}'.endsWith('-musl')) {
132- console.log('IMAGE=node:lts-alpine')
133- } else {
134- console.log('IMAGE=node:lts-slim')
135- }
136- " >> $GITHUB_OUTPUT
137- echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
138-
139- - name : Set up QEMU
140- uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
141- if : ${{ contains(matrix.target, 'linux') }}
142- with :
143- platforms : all
144-
145- - run : docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
146- if : ${{ contains(matrix.target, 'linux') }}
147-
148- - name : Run linux test
149- uses : addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
150- if : false # ${{ contains(matrix.target, 'linux') }}
151- with :
152- image : ${{ steps.docker.outputs.IMAGE }}
153- options : -v ${{ steps.docker.outputs.PNPM_STORE_PATH }}:${{ steps.docker.outputs.PNPM_STORE_PATH }} -v ${{ github.workspace }}:/oxc_resolver -w /oxc_resolver --platform ${{ steps.docker.outputs.PLATFORM }}
154- run : |
155- corepack enable
156- pnpm test
157-
158106 - name : Upload artifacts
159107 uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
160108 with :
@@ -184,7 +132,7 @@ jobs:
184132 environment_variables : " DEBUG RUSTUP_IO_THREADS"
185133 shell : bash
186134 run : |
187- sudo pkg install -y -f curl libnghttp2 node22 npm
135+ sudo pkg install -y -f curl libnghttp2 node22 npm cmake
188136 curl https://sh.rustup.rs -sSf --output rustup.sh
189137 sh rustup.sh -y --profile minimal --default-toolchain stable
190138 source "$HOME/.cargo/env"
0 commit comments