Skip to content

Commit

Permalink
feat: support node21 for prebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk committed Nov 16, 2023
1 parent 394a79b commit d25613f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 19 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
include:
- container: 'node:16.0.0'
node_api_target: '20.0.0'
- container: 'node:16.0.0'
node_api_target: '21.0.0'
container: ${{ matrix.container }}
steps:
- name: Checkout
Expand All @@ -35,7 +37,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-2019, macos-11]
node_api_target: ['14.0.0', '15.0.0', '16.0.0', '17.0.1', '18.0.0', '20.0.0']
node_api_target: ['14.0.0', '15.0.0', '16.0.0', '17.0.1', '18.0.0', '20.0.0', '21.0.0']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down Expand Up @@ -89,7 +91,7 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-2019', 'macos-latest']
nodejs: ['14', '16', '17', '18', '20']
nodejs: ['14', '16', '17', '18', '20', '21']
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@
"@opentelemetry/sdk-trace-node": "1.17.1",
"@opentelemetry/semantic-conventions": "1.17.1",
"is-promise": "^4.0.0",
"nan": "^2.17.0",
"node-gyp-build": "^4.6.0",
"nan": "^2.18.0",
"node-gyp-build": "^4.6.1",
"protobufjs": "^7.2.4",
"semver": "^7.5.4"
},
Expand Down
11 changes: 10 additions & 1 deletion scripts/prebuild-os.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ const prebuildify = require('prebuildify');
let targets = process.argv.slice(2);

if (targets.length == 0) {
targets = ['14.0.0', '15.0.0', '16.0.0', '17.0.1', '18.0.0', '19.0.0', '20.0.0'];
targets = [
'14.0.0',
'15.0.0',
'16.0.0',
'17.0.1',
'18.0.0',
'19.0.0',
'20.0.0',
'21.0.0'
];
}

prebuildify({
Expand Down

0 comments on commit d25613f

Please sign in to comment.