Skip to content

Commit 506c81c

Browse files
authored
feat: add pre-built binaries and support for Node 16 (#172)
1 parent 002fddc commit 506c81c

4 files changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node: [ 10, 12, 14, 15]
12+
node: [ 10, 12, 14, 15, 16]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v2
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM golang:1.16-alpine as builder
2+
RUN apk add --no-cache git
3+
WORKDIR /root/
4+
RUN go get github.com/google/pprof
5+
6+
7+
FROM node:16-alpine
8+
9+
ARG ADDITIONAL_PACKAGES
10+
11+
RUN apk add --no-cache bash $ADDITIONAL_PACKAGES
12+
WORKDIR /root/
13+
COPY --from=builder /go/bin/pprof /bin
14+
RUN chmod a+x /bin/pprof

system-test/system_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ set -eox pipefail
1111
cd $(dirname $0)
1212

1313
if [[ -z "$BINARY_HOST" ]]; then
14-
ADDITIONAL_PACKAGES="python g++ make"
14+
ADDITIONAL_PACKAGES="python3 g++ make"
1515
fi
1616

1717
if [[ "$RUN_ONLY_V8_CANARY_TEST" == "true" ]]; then
1818
NVM_NODEJS_ORG_MIRROR="https://nodejs.org/download/v8-canary"
1919
NODE_VERSIONS=(node)
2020
else
21-
NODE_VERSIONS=(10 12 14 15)
21+
NODE_VERSIONS=(10 12 14 15 16)
2222
fi
2323

2424
for i in ${NODE_VERSIONS[@]}; do

tools/build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mkdir -p "$ARTIFACTS_OUT"
2828

2929
npm install --quiet
3030

31-
for version in 10.0.0 12.0.0 14.0.0 15.0.0
31+
for version in 10.0.0 12.0.0 14.0.0 15.0.0 16.0.0
3232
do
3333
./node_modules/.bin/node-pre-gyp configure rebuild package \
3434
--target=$version --target_arch="x64"

0 commit comments

Comments
 (0)