File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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 * )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments