Skip to content

Commit

Permalink
Add macos arm64 build in prebuild step
Browse files Browse the repository at this point in the history
  • Loading branch information
bertschneider committed Jan 18, 2023
1 parent 3a434dc commit 920642b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ jobs:

prebuilds:
name: create prebuilds
runs-on: ${{ matrix.os }}
needs: [create_release]
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
opts: [""]
include:
- os: macos-11
opts: "--arch arm64"
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v3
Expand All @@ -52,5 +56,5 @@ jobs:
run: npm install --ws=@jazzer.js/fuzzer
- name: build and upload prebuilds
run: >
npm run upload --workspace=@jazzer.js/fuzzer --
${{secrets.GITHUB_TOKEN}}
npm run prebuild --workspace=@jazzer.js/fuzzer -- ${{ matrix.opts }}
--upload ${{secrets.GITHUB_TOKEN}}
4 changes: 2 additions & 2 deletions packages/fuzzer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ what users want, so that their JS fuzz target can run in its normal environment.
The project can be built with `npm run build` (which is incremental after the
first build); a subsequent `npm test` makes sure that the addon loads cleanly.
Binaries can be prebuilt with `npm run prebuild` and uploaded with
`npm run upload`. Please format the code with `clang-format` (or use the format
functionality of `clangd`).
`npm run prebuild -- --upload`. Please format the code with `clang-format` (or
use the format functionality of `clangd`).

Internally, the build system uses several steps:

Expand Down
1 change: 0 additions & 1 deletion packages/fuzzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"types": "dist/fuzzer.d.ts",
"scripts": {
"prebuild": "prebuild --runtime napi --backend cmake-js --all --strip --verbose",
"upload": "prebuild --runtime napi --backend cmake-js --all --strip --upload",
"install": "prebuild-install --runtime napi || cmake-js rebuild --out build",
"build": "cmake-js build --out build",
"format:fix": "clang-format -i *.cpp shared/*.cpp shared/*.h",
Expand Down

0 comments on commit 920642b

Please sign in to comment.