3131 - host : windows-latest
3232 build : yarn build --target x86_64-pc-windows-msvc
3333 target : x86_64-pc-windows-msvc
34- - host : windows-latest
35- build : |
36- rustup target add i686-pc-windows-msvc &&
37- yarn build --target i686-pc-windows-msvc
38- ls -R crates
39- mv crates/domparser_napi/domparser.win32-ia32-msvc.node .
40- yarn test
41- target : i686-pc-windows-msvc
4234 - host : ubuntu-latest
4335 target : x86_64-unknown-linux-gnu
4436 docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
8678 build : |
8779 rustup target add armv7-unknown-linux-gnueabihf &&
8880 yarn build --target armv7-unknown-linux-gnueabihf
89- - host : ubuntu-latest
90- target : armv7-unknown-linux-musleabihf
91- build : |
92- rustup target add armv7-unknown-linux-musleabihf &&
93- export CC="zig cc -target arm-linux-musleabihf" &&
94- export CXX="zig c++ -target arm-linux-musleabihf" &&
95- export CARGO_TARGET_ARMV7_UNKNOWN_LINUX_MUSLEABIHF_LINKER="zig" &&
96- export RUSTFLAGS="-C linker=zig -C link-arg=cc -C link-arg=-target -C link-arg=arm-linux-musleabihf" &&
97- yarn build --target armv7-unknown-linux-musleabihf
98- - host : ubuntu-latest
99- target : aarch64-linux-android
100- build : |
101- rustup target add aarch64-linux-android &&
102- yarn build --target aarch64-linux-android
103- - host : ubuntu-latest
104- target : armv7-linux-androideabi
105- build : |
106- rustup target add armv7-linux-androideabi &&
107- yarn build --target armv7-linux-androideabi
10881 - host : ubuntu-latest
10982 target : aarch64-unknown-linux-musl
11083 docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
@@ -123,14 +96,6 @@ jobs:
12396 build : |
12497 rustup target add aarch64-pc-windows-msvc &&
12598 yarn build --target aarch64-pc-windows-msvc
126- - host : ubuntu-latest
127- target : riscv64gc-unknown-linux-gnu
128- setup : |
129- sudo apt-get update
130- sudo apt-get install gcc-riscv64-linux-gnu -y
131- build : |
132- rustup target add riscv64gc-unknown-linux-gnu &&
133- yarn build --target riscv64gc-unknown-linux-gnu
13499 name : stable - ${{ matrix.settings.target }} - node@20
135100 runs-on : ${{ matrix.settings.host }}
136101 steps :
@@ -158,26 +123,15 @@ jobs:
158123 target/
159124 key : ${{ matrix.settings.target }}-cargo-${{ matrix.settings.host }}
160125 - uses : goto-bus-stop/setup-zig@v2
161- if : ${{ matrix.settings.target == 'armv7-unknown-linux-gnueabihf' || matrix.settings.target == 'armv7-unknown-linux-musleabihf' }}
126+ if : ${{ matrix.settings.target == 'armv7-unknown-linux-gnueabihf' }}
162127 with :
163128 version : 0.13.0
164129 - name : Setup toolchain
165130 run : ${{ matrix.settings.setup }}
166131 if : ${{ matrix.settings.setup }}
167132 shell : bash
168- - name : Setup node x86
169- if : matrix.settings.target == 'i686-pc-windows-msvc'
170- run : yarn config set supportedArchitectures.cpu "ia32"
171- shell : bash
172133 - name : Install dependencies
173134 run : yarn install
174- - name : Setup node x86
175- uses : actions/setup-node@v4
176- if : matrix.settings.target == 'i686-pc-windows-msvc'
177- with :
178- node-version : 20
179- cache : yarn
180- architecture : x86
181135 - name : Build in docker
182136 uses : addnab/docker-run-action@v3
183137 if : ${{ matrix.settings.docker }}
@@ -198,54 +152,6 @@ jobs:
198152 name : bindings-${{ matrix.settings.target }}
199153 path : domparser.*.node
200154 if-no-files-found : error
201- build-freebsd :
202- runs-on : ubuntu-latest
203- name : Build FreeBSD
204- steps :
205- - uses : actions/checkout@v4
206- - name : Build
207- id : build
208- uses : cross-platform-actions/action@v0.25.0
209- env :
210- DEBUG : napi:*
211- RUSTUP_IO_THREADS : 1
212- with :
213- operating_system : freebsd
214- version : " 14.0"
215- memory : 8G
216- cpu_count : 3
217- environment_variables : DEBUG RUSTUP_IO_THREADS
218- shell : bash
219- run : |
220- sudo pkg install -y -f curl node libnghttp2 npm
221- sudo npm install -g yarn --ignore-scripts
222- curl https://sh.rustup.rs -sSf --output rustup.sh
223- sh rustup.sh -y --profile minimal --default-toolchain stable
224- source "$HOME/.cargo/env"
225- echo "~~~~ rustc --version ~~~~"
226- rustc --version
227- echo "~~~~ node -v ~~~~"
228- node -v
229- echo "~~~~ yarn --version ~~~~"
230- yarn --version
231- pwd
232- ls -lah
233- whoami
234- env
235- freebsd-version
236- yarn install
237- yarn build
238- mv crates/domparser_napi/domparser.*.node .
239- yarn test
240- rm -rf node_modules
241- rm -rf target
242- rm -rf .yarn/cache
243- - name : Upload artifact
244- uses : actions/upload-artifact@v4
245- with :
246- name : bindings-freebsd
247- path : domparser.*.node
248- if-no-files-found : error
249155 test-macOS-windows-binding :
250156 name : Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
251157 needs :
@@ -488,7 +394,6 @@ jobs:
488394 name : Publish
489395 runs-on : ubuntu-latest
490396 needs :
491- - build-freebsd
492397 - test-macOS-windows-binding
493398 - test-linux-x64-gnu-binding
494399 - test-linux-x64-musl-binding
0 commit comments