-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add x86_64-unknown-freebsd target (#226)
- Loading branch information
1 parent
6d097a7
commit 312d612
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,49 @@ jobs: | |
path: | | ||
napi/*.node | ||
napi/*.wasm | ||
build-freebsd: | ||
runs-on: ubuntu-latest | ||
name: Build FreeBSD | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
id: build | ||
uses: cross-platform-actions/[email protected] | ||
env: | ||
DEBUG: napi:* | ||
RUSTUP_IO_THREADS: 1 | ||
with: | ||
operating_system: freebsd | ||
version: '14.0' | ||
memory: 8G | ||
cpu_count: 3 | ||
environment_variables: 'DEBUG RUSTUP_IO_THREADS' | ||
shell: bash | ||
run: | | ||
sudo pkg install -y -f curl node libnghttp2 npm | ||
curl https://sh.rustup.rs -sSf --output rustup.sh | ||
sh rustup.sh -y --profile minimal --default-toolchain stable | ||
source "$HOME/.cargo/env" | ||
echo "~~~~ rustc --version ~~~~" | ||
rustc --version | ||
echo "~~~~ node -v ~~~~" | ||
node -v | ||
pwd | ||
ls -lah | ||
whoami | ||
env | ||
corepack enable | ||
pnpm install | ||
pnpm build --target x86_64-unknown-freebsd | ||
rm -rf node_modules | ||
rm -rf target | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: bindings-freebsd | ||
path: napi/*.node | ||
if-no-files-found: error | ||
|
||
publish: | ||
name: Publish NAPI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters