ci: fix attempt

This commit is contained in:
skdhg committed 2023-08-09 23:48:30 +05:45
1 parent 5281760801
commit 288ec3ec42
1 file changed
+51 -51
+51 -51
View File
@@ -159,57 +159,57 @@ 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-12
name: Build FreeBSD name: Build FreeBSD
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- name: Build - name: Build
id: build id: build
uses: vmactions/freebsd-vm@v0 uses: vmactions/freebsd-vm@v0
env: env:
DEBUG: napi:* DEBUG: napi:*
RUSTUP_HOME: /usr/local/rustup RUSTUP_HOME: /usr/local/rustup
CARGO_HOME: /usr/local/cargo CARGO_HOME: /usr/local/cargo
RUSTUP_IO_THREADS: 1 RUSTUP_IO_THREADS: 1
with: with:
envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS
usesh: true usesh: true
mem: 3000 mem: 3000
prepare: | prepare: |
pkg install -y -f curl node libnghttp2 llvm # Install the llvm package to fix the libclang error pkg install -y -f curl node libnghttp2 llvm # Install the llvm package to fix the libclang error
curl -qL https://www.npmjs.com/install.sh | sh curl -qL https://www.npmjs.com/install.sh | sh
npm install --location=global --ignore-scripts yarn npm install --location=global --ignore-scripts yarn
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
export PATH="/usr/local/cargo/bin:$PATH" export PATH="/usr/local/cargo/bin:$PATH"
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: | run: |
export PATH="/usr/local/cargo/bin:$PATH" export PATH="/usr/local/cargo/bin:$PATH"
pwd pwd
ls -lah ls -lah
whoami whoami
env env
freebsd-version freebsd-version
yarn install yarn install
yarn build yarn build
strip -x *.node 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@v3
with: with:
name: bindings-freebsd name: bindings-freebsd
path: ${{ env.APP_NAME }}.*.node path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error if-no-files-found: error
test-macOS-windows-binding: test-macOS-windows-binding:
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
needs: needs: