Skip to content

Commit 690de2c

Browse files
committed
ci: Minor fixes for FreeBSD support
1 parent 5632027 commit 690de2c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ci/lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ arch() {
3838
aarch64)
3939
echo arm64
4040
;;
41-
x86_64)
41+
x86_64 | amd64)
4242
echo amd64
4343
;;
4444
*)

ci/steps/release-packages.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ main() {
77
NODE_VERSION=v12.18.4
88
NODE_OS="$(uname | tr '[:upper:]' '[:lower:]')"
99
NODE_ARCH="$(uname -m | sed 's/86_64/64/; s/aarch64/arm64/')"
10-
curl -L "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH.tar.gz" | tar -xz
10+
if [ "$NODE_OS" = "freebsd" ]; then
11+
mkdir -p "$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin"
12+
cp "$(which node)" "$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin"
13+
else
14+
curl -L "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH.tar.gz" | tar -xz
15+
fi
1116
PATH="$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin:$PATH"
1217

1318
# https://github.com/actions/upload-artifact/issues/38

0 commit comments

Comments
 (0)