From 19468b6d197d02c37b3cb7600b8c7513c2896175 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Sun, 4 Oct 2026 13:59:32 +0900 Subject: [PATCH] ci.yml: use prebuilt cargo-fuzz --- .github/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0988f38..f5c5f82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,22 +147,25 @@ jobs: runs-on: ubuntu-latest env: RUN_FOR: 60 + # cargo-fuzz uses nightly features + RUSTC_BOOTSTRAP: 1 steps: - uses: actions/checkout@v7 - - name: emulate nightly toolchain - run: echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}" - name: Install `cargo-fuzz` - run: cargo install cargo-fuzz --locked + uses: taiki-e/install-action@v2 + with: + tool: cargo-fuzz - uses: Swatinem/rust-cache@v2 - name: Run fuzz_parse_datetime for XX seconds shell: bash run: | ## Run it cd fuzz - cargo fuzz run fuzz_parse_datetime -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 + # https://github.com/rust-fuzz/cargo-fuzz/issues/398 + cargo fuzz run --target host-tuple fuzz_parse_datetime -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 - name: Run fuzz_large_year for XX seconds shell: bash run: | ## Run it cd fuzz - cargo fuzz run fuzz_large_year -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 + cargo fuzz run --target host-tuple fuzz_large_year -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0