Skip to content
This repository was archived by the owner on May 23, 2021. It is now read-only.

Commit fa79989

Browse files
committed
Actually fix the Alpine build in CI
I had the wrong impression from the "No such file or directory" error. Pretty obvious in hindsight...
1 parent e8166b5 commit fa79989

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts/ci.bash

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ function docker-build() {
4242

4343
docker-exec "cd /src && ./node_modules/.bin/mocha"
4444

45+
node_version=$(docker-exec "NBIN_BYPASS=true /src/lib/node/node --version | sed 's/^v//'")
46+
4547
docker kill "$containerId"
4648
}
4749

4850
function local-build() {
4951
yarn build:node
5052
yarn test
53+
node_version=$(NBIN_BYPASS=true ./lib/node/node --version | sed 's/^v//')
5154
}
5255

5356
function main() {
@@ -59,6 +62,7 @@ function main() {
5962
yarn build:nbin
6063
yarn build:bundle
6164

65+
local node_version="unknown"
6266
local platform="${PLATFORM:-linux}"
6367
local arch="${ARCH:-x86_64}"
6468
echo "Building $platform-$arch"
@@ -68,18 +72,12 @@ function main() {
6872
* ) local-build ;;
6973
esac
7074

71-
pwd && ls -l ./lib/node
72-
73-
local node_version
74-
node_version=$(NBIN_BYPASS=true ./lib/node/node --version | sed 's/^v//')
7575
local binary_name="node-$node_version-$platform-$arch"
7676

7777
mkdir -p "./build/$version"
7878
cp ./lib/node/node "./build/$version/$binary_name"
7979

8080
echo "Copied binary to ./build/$version/$binary_name"
81-
82-
pwd && tree ./build || ls -l ./build
8381
}
8482

8583
main "$@"

0 commit comments

Comments
 (0)