diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3449870264367..4e7af5cda8e0f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -159,30 +159,30 @@ jobs: - uses: actions/checkout@v3 - name: Build id: build - uses: vmactions/freebsd-vm@v0 + uses: cross-platform-actions/action@v0.15.0 env: DEBUG: napi:* - RUSTUP_HOME: /usr/local/rustup - CARGO_HOME: /usr/local/cargo RUSTUP_IO_THREADS: 1 with: - envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS - usesh: true - mem: 4096 - prepare: | - pkg install -y -f curl node libnghttp2 npm - npm install --location=global --ignore-scripts pnpm + operating_system: freebsd + version: '13.2' + architecture: x86-64 + environment_variables: DEBUG RUSTUP_IO_THREADS + shell: bash + run: | + env + whoami + sudo pkg install -y -f node libnghttp2 npm git + sudo npm install --location=global --ignore-scripts pnpm curl https://sh.rustup.rs -sSf --output rustup.sh sh rustup.sh -y --profile minimal --default-toolchain stable - export PATH="/usr/local/cargo/bin:$PATH" + source "$HOME/.cargo/env" echo "~~~~ rustc --version ~~~~" rustc --version echo "~~~~ node -v ~~~~" node -v echo "~~~~ pnpm --version ~~~~" pnpm --version - run: | - export PATH="/usr/local/cargo/bin:$PATH" pwd ls -lah whoami