7979 fail-fast : false
8080 matrix :
8181 settings :
82- # pnpm is aliased here temporarily until the build docker
83- # image is updated past Node.js v14.19 (current 14.18.1)
8482 - host :
8583 - ' self-hosted'
8684 - ' macos'
9290 turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target x86_64-apple-darwin --release
9391 strip -x packages/next-swc/native/next-swc.*.node
9492
93+ - host :
94+ - ' self-hosted'
95+ - ' macos'
96+ - ' arm64'
97+
98+ target : ' aarch64-apple-darwin'
99+ build : |
100+ export CC=$(xcrun -f clang);
101+ export CXX=$(xcrun -f clang++);
102+ SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
103+ export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
104+ npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" && corepack enable
105+ turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target aarch64-apple-darwin
106+ strip -x packages/next-swc/native/next-swc.*.node
107+
95108 - host :
96109 - ' self-hosted'
97110 - ' windows'
@@ -114,18 +127,32 @@ jobs:
114127 turbo run build-native-no-plugin --remote-cache-timeout 90 --summarize -- --release --target i686-pc-windows-msvc
115128 target : ' i686-pc-windows-msvc'
116129
130+ - host :
131+ - ' self-hosted'
132+ - ' windows'
133+ - ' x64'
134+
135+ target : ' aarch64-pc-windows-msvc'
136+ build : |
137+ corepack enable
138+ npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}"
139+ turbo run build-native-no-plugin-woa-release --remote-cache-timeout 90 --summarize -- --target aarch64-pc-windows-msvc
140+
117141 - host :
118142 - ' self-hosted'
119143 - ' linux'
120144 - ' x64'
121145 - ' metal'
122146
123147 target : ' x86_64-unknown-linux-gnu'
124- docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
148+ docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24-x64
125149 build : >-
126150 set -e &&
127151 apt update &&
128- apt install -y pkg-config &&
152+ apt install -y pkg-config xz-utils &&
153+ wget https://nodejs.org/dist/v18.12.0/node-v18.12.0-linux-x64.tar.xz -O node.tar.xz &&
154+ tar -xf node.tar.xz &&
155+ cd node-* && cp -r ./{bin,include,lib,share} /usr/local/ && cd .. &&
129156 rustup toolchain install "${RUST_TOOLCHAIN}" &&
130157 rustup default "${RUST_TOOLCHAIN}" &&
131158 rustup target add x86_64-unknown-linux-gnu &&
@@ -141,44 +168,35 @@ jobs:
141168 - ' metal'
142169
143170 target : ' x86_64-unknown-linux-musl'
144- docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts -alpine
171+ docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24 -alpine
145172 build : >-
146173 set -e &&
147- apk add --no-cache libc6-compat pkgconfig &&
174+ rm -rfv /usr/local/bin/{node,nodejs,npm,npx,corepack} &&
175+ apk update && apk upgrade &&
176+ apk add --no-cache libc6-compat pkgconfig nodejs-current npm &&
177+ rm -rfv /usr/local/bin/{node,nodejs,npm,npx} &&
148178 rustup toolchain install "${RUST_TOOLCHAIN}" &&
149179 rustup default "${RUST_TOOLCHAIN}" &&
150180 rustup target add x86_64-unknown-linux-musl &&
151181 npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" && corepack enable && pnpm -v && node -v &&
152182 turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target x86_64-unknown-linux-musl &&
153183 strip packages/next-swc/native/next-swc.*.node
154184
155- - host :
156- - ' self-hosted'
157- - ' macos'
158- - ' arm64'
159-
160- target : ' aarch64-apple-darwin'
161- build : |
162- export CC=$(xcrun -f clang);
163- export CXX=$(xcrun -f clang++);
164- SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
165- export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
166- npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" && corepack enable
167- turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target aarch64-apple-darwin
168- strip -x packages/next-swc/native/next-swc.*.node
169-
170185 - host :
171186 - ' self-hosted'
172187 - ' linux'
173188 - ' x64'
174189 - ' metal'
175190
176191 target : ' aarch64-unknown-linux-gnu'
177- docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian -aarch64
192+ docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24 -aarch64
178193 build : >-
179194 set -e &&
180195 apt update &&
181- apt install -y pkg-config &&
196+ apt install -y pkg-config xz-utils &&
197+ wget https://nodejs.org/dist/v18.12.0/node-v18.12.0-linux-x64.tar.xz -O node.tar.xz &&
198+ tar -xf node.tar.xz &&
199+ cd node-* && cp -r ./{bin,include,lib,share} /usr/local/ && cd .. &&
182200 export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
183201 rustup toolchain install "${RUST_TOOLCHAIN}" &&
184202 rustup default "${RUST_TOOLCHAIN}" &&
@@ -195,10 +213,12 @@ jobs:
195213 - ' metal'
196214
197215 target : ' aarch64-unknown-linux-musl'
198- docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts -alpine
216+ docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24 -alpine
199217 build : >-
200218 set -e &&
201- apk add --no-cache libc6-compat pkgconfig &&
219+ rm -rfv /usr/local/bin/{node,nodejs,npm,npx,corepack} &&
220+ apk update && apk upgrade &&
221+ apk add --no-cache libc6-compat pkgconfig nodejs-current npm &&
202222 export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
203223 npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" && corepack enable &&
204224 rustup toolchain install "${RUST_TOOLCHAIN}" &&
@@ -207,17 +227,6 @@ jobs:
207227 turbo run build-native-release --remote-cache-timeout 90 --summarize -- --target aarch64-unknown-linux-musl &&
208228 llvm-strip -x packages/next-swc/native/next-swc.*.node
209229
210- - host :
211- - ' self-hosted'
212- - ' windows'
213- - ' x64'
214-
215- target : ' aarch64-pc-windows-msvc'
216- build : |
217- corepack enable
218- npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}"
219- turbo run build-native-no-plugin-woa-release --remote-cache-timeout 90 --summarize -- --target aarch64-pc-windows-msvc
220-
221230 name : stable - ${{ matrix.settings.target }} - node@16
222231 runs-on : ${{ matrix.settings.host }}
223232 steps :
0 commit comments