chore(ci): update freebsd build

This commit is contained in:
darksaid98 committed 2024-05-10 16:39:48 +02:00
1 parent ea8ad56617
commit 08bf17a8bd
1 file changed
+13 -18
+13 -18
View File
@@ -141,40 +141,36 @@ jobs:
path: ${{ env.APP_NAME }}.*.node path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error if-no-files-found: error
build-freebsd: build-freebsd:
runs-on: macos-12 runs-on: macos-13
name: Build FreeBSD name: Build FreeBSD
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
submodules: true
- name: Build - name: Build
id: build id: build
uses: vmactions/freebsd-vm@v0 uses: cross-platform-actions/[email protected].0
env: env:
DEBUG: napi:* DEBUG: napi:*
RUSTUP_HOME: /usr/local/rustup
CARGO_HOME: /usr/local/cargo
RUSTUP_IO_THREADS: 1 RUSTUP_IO_THREADS: 1
with: with:
envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS operating_system: freebsd
usesh: true version: '13.2'
mem: 3000 memory: 8G
prepare: | cpu_count: 3
pkg install -y -f curl node libnghttp2 llvm cmake # Install the llvm package to fix the libclang error environment_variables: 'DEBUG RUSTUP_IO_THREADS'
curl -qL https://www.npmjs.com/install.sh | sh shell: bash
npm install --location=global --ignore-scripts yarn run: |
sudo pkg install -y -f curl node libnghttp2 npm llvm cmake # Install the llvm package to fix the libclang error
sudo npm install -g yarn --ignore-scripts
curl https://sh.rustup.rs -sSf --output rustup.sh curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --profile minimal --default-toolchain beta sh rustup.sh -y --profile minimal --default-toolchain beta
rustup component add rustfmt rustup component add rustfmt
export PATH="/usr/local/cargo/bin:$PATH" source "$HOME/.cargo/env"
echo "~~~~ rustc --version ~~~~" echo "~~~~ rustc --version ~~~~"
rustc --version rustc --version
echo "~~~~ node -v ~~~~" echo "~~~~ node -v ~~~~"
node -v node -v
echo "~~~~ yarn --version ~~~~" echo "~~~~ yarn --version ~~~~"
yarn --version yarn --version
run: |
export PATH="/usr/local/cargo/bin:$PATH"
pwd pwd
ls -lah ls -lah
whoami whoami
@@ -182,13 +178,12 @@ jobs:
freebsd-version freebsd-version
yarn install yarn install
yarn build yarn build
strip -x *.node
yarn test yarn test
rm -rf node_modules rm -rf node_modules
rm -rf target rm -rf target
rm -rf .yarn/cache rm -rf .yarn/cache
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: bindings-freebsd name: bindings-freebsd
path: ${{ env.APP_NAME }}.*.node path: ${{ env.APP_NAME }}.*.node