Skip to content

Commit

Permalink
feat: create arm64 builds (#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuditi committed Jan 24, 2023
1 parent f0e049a commit 049780d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,12 @@ jobs:
run: npm install typescript && npm ci
working-directory: bindings/nodejs

- name: Build Node.js prebuild
run: npm run prebuild
- name: Build Node.js prebuild (x64)
run: npm run prebuild-x64
working-directory: bindings/nodejs

- name: Build Node.js prebuild (arm64)
run: npm run prebuild-arm64
working-directory: bindings/nodejs

- name: Upload prebuild to GitHub release
Expand Down
3 changes: 2 additions & 1 deletion bindings/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build": "node scripts/neon-build && tsc",
"build:neon": "cargo-cp-artifact -nc ./index.node -- cargo build --release --message-format=json-render-diagnostics",
"docs-wiki-build": "typedoc --githubPages false --disableSources --excludePrivate --excludeInternal --excludeNotDocumented --plugin typedoc-plugin-markdown --theme markdown --hideBreadcrumbs --entryDocument api_ref.md --readme none --hideGenerator --sort source-order --exclude ./**/src/index.ts --out ../../documentation/docs/references/nodejs ./lib/index.ts ",
"prebuild": "prebuild --runtime napi --target 6 --prepack scripts/neon-build.js --strip",
"prebuild-x64": "prebuild --runtime napi --target 6 --prepack scripts/neon-build.js --strip --arch x64",
"prebuild-arm64": "prebuild --runtime napi --target 6 --prepack scripts/neon-build.js --strip --arch arm64",
"rebuild": "node scripts/neon-build && tsc && node scripts/strip.js",
"install": "prebuild-install --runtime napi --tag-prefix nodejs-binding-v || npm run rebuild",
"test": "cargo test"
Expand Down

0 comments on commit 049780d

Please sign in to comment.