Skip to content

Commit 3930139

Browse files
committed
fix freebsd build
1 parent 21deea4 commit 3930139

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -173,17 +173,17 @@ jobs:
173173
version: '13.2'
174174
shell: bash
175175
run: |
176-
pkg install -y -f curl node libnghttp2 npm yarn
176+
sudo pkg install -y -f curl node libnghttp2 npm yarn
177177
curl https://sh.rustup.rs -sSf --output rustup.sh
178178
sh rustup.sh -y --profile minimal --default-toolchain beta
179-
export PATH="/usr/local/cargo/bin:$PATH"
179+
source "$HOME/.cargo/env"
180180
echo "~~~~ rustc --version ~~~~"
181181
rustc --version
182182
echo "~~~~ node -v ~~~~"
183183
node -v
184184
echo "~~~~ yarn --version ~~~~"
185185
yarn --version
186-
yarn install
186+
yarn install || true
187187
yarn build-release
188188
strip -x *.node
189189
cargo build --release --features cli
@@ -210,6 +210,7 @@ jobs:
210210
uses: actions/setup-node@v3
211211
with:
212212
node-version: 18
213+
- uses: bahmutov/[email protected]
213214
- name: Install Rust
214215
uses: dtolnay/rust-toolchain@stable
215216
with:

0 commit comments

Comments
 (0)