Skip to content

Commit

Permalink
ci: add FreeBSD build
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Jul 16, 2024
1 parent 0ed2c19 commit 8d7fbed
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,50 @@ jobs:
./packages/core/*.wasm
if-no-files-found: error

build-freebsd:
name: Build FreeBSD
runs-on: ubuntu-latest
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
sudo corepack enable
pnpm install
pnpm build --target x86_64-unknown-freebsd
pnpm test
rm -rf node_modules
rm -rf target
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: bindings-freebsd
path: ./packages/core/*.node
if-no-files-found: error

test-macOS-windows-binding:
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
needs:
Expand Down Expand Up @@ -306,6 +350,7 @@ jobs:
- lint
- test-macOS-windows-binding
- test-linux-binding
- build-freebsd
# - test-wasi
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 8d7fbed

Please sign in to comment.