Skip to content

Commit

Permalink
ci: stabilize test-measurements workflow (#2597)
Browse files Browse the repository at this point in the history
  • Loading branch information
techraed authored Apr 28, 2023
1 parent ca9827f commit 491542e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ jobs:
- name: "Build: Gear"
run: ./scripts/gear.sh build gear --locked --release

- name: "Build fuzzer"
run: ./scripts/gear.sh build fuzz --locked --release

- name: "Build: WAT examples"
run: ./scripts/gear.sh build wat-examples

Expand Down
4 changes: 4 additions & 0 deletions scripts/gear.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ case "$COMMAND" in
header "Building gear workspace"
gear_build "$@"; ;;

fuzz)
header "Builder fuzzer crates"
fuzzer_build "$@"; ;;

gear-test)
header "Building gear test"
gear_test_build "$@"; ;;
Expand Down
5 changes: 3 additions & 2 deletions scripts/src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ build_usage() {
help show help message and exit
gear build gear workspace
fuzz build fuzzer crates
gear-test build gear-test binary
examples build gear program examples,
you can specify yaml list to build coresponding examples
Expand All @@ -29,10 +30,10 @@ EOF
}

gear_build() {
echo " >> Build workspace without crates that use runtime with 'fuzz' feature"
$CARGO build --workspace "$@" --exclude runtime-fuzzer --exclude runtime-fuzzer-fuzz
}

echo " >> Build crates that use runtime with 'fuzz' feature"
fuzzer_build() {
$CARGO +nightly build "$@" -p runtime-fuzzer -p runtime-fuzzer-fuzz
}

Expand Down

0 comments on commit 491542e

Please sign in to comment.