Skip to content

Commit 311393b

Browse files
committed
chore: freebsd
1 parent f235fb6 commit 311393b

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

.github/workflows/CI.yml

+19-22
Original file line numberDiff line numberDiff line change
@@ -158,50 +158,47 @@ jobs:
158158
path: ${{ env.APP_NAME }}.*.node
159159
if-no-files-found: error
160160
build-freebsd:
161-
runs-on: macos-12
161+
runs-on: macos-13
162162
name: Build FreeBSD
163163
steps:
164-
- uses: actions/checkout@v3
164+
- uses: actions/checkout@v4
165165
- name: Build
166166
id: build
167-
uses: vmactions/freebsd-vm@v0
167+
uses: cross-platform-actions/action@v0.23.0
168168
env:
169169
DEBUG: napi:*
170-
RUSTUP_HOME: /usr/local/rustup
171-
CARGO_HOME: /usr/local/cargo
172170
RUSTUP_IO_THREADS: 1
173171
with:
174-
envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS
175-
usesh: true
176-
mem: 3000
177-
prepare: |
178-
pkg install -y -f curl node libnghttp2 npm
179-
172+
operating_system: freebsd
173+
version: '13.2'
174+
memory: 13G
175+
cpu_count: 3
176+
environment_variables: 'DEBUG RUSTUP_IO_THREADS'
177+
shell: bash
178+
run: |
179+
sudo pkg install -y -f curl node libnghttp2 npm
180+
sudo npm install -g pnpm
180181
curl https://sh.rustup.rs -sSf --output rustup.sh
181182
sh rustup.sh -y --profile minimal --default-toolchain beta
182-
export PATH="/usr/local/cargo/bin:$PATH"
183+
source "$HOME/.cargo/env"
183184
echo "~~~~ rustc --version ~~~~"
184185
rustc --version
185186
echo "~~~~ node -v ~~~~"
186187
node -v
187-
echo "~~~~ pnpm --version ~~~~"
188-
pnpm --version
189-
run: |
190-
export PATH="/usr/local/cargo/bin:$PATH"
188+
echo "~~~~ yarn --version ~~~~"
189+
yarn --version
191190
pwd
192191
ls -lah
193192
whoami
194193
env
195194
freebsd-version
196-
pnpm install
197-
pnpm build
198-
strip -x *.node
199-
pnpm test
195+
yarn install
196+
yarn build
200197
rm -rf node_modules
201198
rm -rf target
202-
rm -rf .pnpm/cache
199+
rm -rf .yarn/cache
203200
- name: Upload artifact
204-
uses: actions/upload-artifact@v3
201+
uses: actions/upload-artifact@v4
205202
with:
206203
name: bindings-freebsd
207204
path: ${{ env.APP_NAME }}.*.node

0 commit comments

Comments
 (0)