From 491542ef2df6eed6430d1402b43f253dd1a30557 Mon Sep 17 00:00:00 2001 From: Sabaun Taraki Date: Fri, 28 Apr 2023 21:35:49 +0300 Subject: [PATCH] ci: stabilize test-measurements workflow (#2597) --- .github/workflows/CI.yaml | 3 +++ scripts/gear.sh | 4 ++++ scripts/src/build.sh | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index a1f14dffe5d..0cb934884a7 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -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 diff --git a/scripts/gear.sh b/scripts/gear.sh index 16960466a4b..c637bff1d79 100755 --- a/scripts/gear.sh +++ b/scripts/gear.sh @@ -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 "$@"; ;; diff --git a/scripts/src/build.sh b/scripts/src/build.sh index 5a5a34dd3e8..32019bf1a79 100755 --- a/scripts/src/build.sh +++ b/scripts/src/build.sh @@ -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 @@ -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 }