File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,52 @@ jobs:
159
159
path : |
160
160
napi/*.node
161
161
napi/*.wasm
162
+
163
+ build-freebsd :
164
+ runs-on : ubuntu-latest
165
+ name : Build FreeBSD
166
+ steps :
167
+ - uses : actions/checkout@v4
168
+ - name : Build
169
+ id : build
170
+ uses : cross-platform-actions/action@v0.25.0
171
+ env :
172
+ DEBUG : napi:*
173
+ RUSTUP_IO_THREADS : 1
174
+ with :
175
+ operating_system : freebsd
176
+ version : ' 14.0'
177
+ memory : 8G
178
+ cpu_count : 3
179
+ environment_variables : ' DEBUG RUSTUP_IO_THREADS'
180
+ shell : bash
181
+ run : |
182
+ sudo pkg install -y -f curl node libnghttp2 npm
183
+ curl https://sh.rustup.rs -sSf --output rustup.sh
184
+ sh rustup.sh -y --profile minimal --default-toolchain stable
185
+ source "$HOME/.cargo/env"
186
+ echo "~~~~ rustc --version ~~~~"
187
+ rustc --version
188
+ echo "~~~~ node -v ~~~~"
189
+ node -v
190
+ echo "~~~~ yarn --version ~~~~"
191
+ yarn --version
192
+ pwd
193
+ ls -lah
194
+ whoami
195
+ env
196
+ freebsd-version
197
+ corepack enable
198
+ pnpm install
199
+ pnpm build --target x86_64-unknown-freebsd
200
+ rm -rf node_modules
201
+ rm -rf target
202
+ - name : Upload artifact
203
+ uses : actions/upload-artifact@v4
204
+ with :
205
+ name : bindings-freebsd
206
+ path : napi/*.node
207
+ if-no-files-found : error
162
208
163
209
publish :
164
210
name : Publish NAPI
Original file line number Diff line number Diff line change 32
32
" aarch64-pc-windows-msvc" ,
33
33
" x86_64-unknown-linux-gnu" ,
34
34
" x86_64-unknown-linux-musl" ,
35
+ " x86_64-unknown-freebsd" ,
35
36
" aarch64-unknown-linux-gnu" ,
36
37
" aarch64-unknown-linux-musl" ,
37
38
" armv7-unknown-linux-gnueabihf" ,
You can’t perform that action at this time.
0 commit comments