From 1300f801edfda174cffb4ca5ebfd45e5f602bbfe Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 14 May 2022 08:27:52 -0700 Subject: [PATCH] CI: speculatively run the fuzzer for termwiz --- .github/workflows/termwiz.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/termwiz.yml b/.github/workflows/termwiz.yml index 54ca63623..6596b63e3 100644 --- a/.github/workflows/termwiz.yml +++ b/.github/workflows/termwiz.yml @@ -48,3 +48,30 @@ jobs: cargo build -p termwiz --all-features cargo test -p termwiz --all-features + fuzz-termwiz: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "nightly" + override: true + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "ubuntu-latest-termwiz-fuzz-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: Build + run: | + source $HOME/.cargo/env + cd termwiz/fuzz + cargo +nightly fuzz run escape_parse -- -max_total_time=60 +