Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ jobs:
run: npm install [email protected]/fuzzer
- name: build and upload prebuilds
run: >
npm run prebuild [email protected]/fuzzer -- ${{ matrix.opts }}
--upload ${{secrets.GITHUB_TOKEN}}
npm run build-native [email protected]/fuzzer -- ${{ matrix.opts
}} --upload ${{secrets.GITHUB_TOKEN}}
18 changes: 12 additions & 6 deletions end-to-end/package-jazzer-js.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/bin/sh
#!/usr/bin/env bash
set -e

cd ..
npm install
npm run build
npm run build --workspace='@jazzer.js/fuzzer'
main() {
cd ..
npm install
npm run build
npm run build --workspace='@jazzer.js/fuzzer'

local tarballs=$(npm pack --workspaces | grep ".tgz")
echo "$tarballs" | sed_version_and_mv
}

sed_version_and_mv() {
while read data; do
Expand All @@ -13,4 +19,4 @@ sed_version_and_mv() {
done
}

npm pack --workspaces | sed_version_and_mv
main
7 changes: 4 additions & 3 deletions packages/fuzzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
"main": "dist/fuzzer.js",
"types": "dist/fuzzer.d.ts",
"scripts": {
"prebuild": "prebuild --runtime napi --backend cmake-js --all --strip --verbose",
"install": "prebuild-install --runtime napi || npm run prebuild",
"build": "cmake-js build --out build",
"build-native": "prebuild --runtime napi --backend cmake-js --all --strip --verbose",
"install": "prebuild-install --runtime napi || npm run build-native",
"build:dev": "cmake-js configure --out build --debug && cmake-js build",
"build": "cmake-js configure --out build && cmake-js build",
"format:fix": "clang-format -i *.cpp shared/*.cpp shared/*.h",
"lint": "find . -path ./build -prune -type f -o -iname '*.h' -o -iname '*.cpp' | xargs clang-tidy"
},
Expand Down