diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index bddfa3d..665bc33 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -11,15 +11,21 @@ permissions: jobs: fuzz: runs-on: ubuntu-latest + env: + RUSTUP_TOOLCHAIN: nightly steps: - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@master with: - toolchain: stable - - uses: taiki-e/install-action@cargo-fuzz - - run: cargo fuzz run parsers -- -max_total_time=120 -max_len=2097152 - env: - RUSTC_BOOTSTRAP: "1" - - run: cargo fuzz run interfaces -- -max_total_time=120 -max_len=2097152 - env: - RUSTC_BOOTSTRAP: "1" + toolchain: nightly + - uses: taiki-e/install-action@v2 + with: + tool: cargo-fuzz + fallback: cargo-install + - uses: Swatinem/rust-cache@v2 + with: + workspaces: fuzz + - run: cargo fuzz run parsers --target x86_64-unknown-linux-gnu -- -max_total_time=120 -max_len=2097152 + working-directory: fuzz + - run: cargo fuzz run interfaces --target x86_64-unknown-linux-gnu -- -max_total_time=120 -max_len=2097152 + working-directory: fuzz diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index 3eac0ea..3d778c7 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -158,6 +158,16 @@ dependencies = [ "cpufeatures", ] +[[package]] +name = "bstr" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f7dc094d718f2e1c1559ad110e27eeaae14a5465d3d56dd6dbd793079fbd530" +dependencies = [ + "memchr", + "serde_core", +] + [[package]] name = "bumpalo" version = "3.20.3" @@ -243,6 +253,7 @@ dependencies = [ "atomic-write-file", "blake3", "code-system-graph-model", + "globset", "graphql-parser", "hcl-rs", "proto-parser", @@ -560,6 +571,19 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "globset" +version = "0.4.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e47d37d2ae4464254884b60ab7071be2b876a9c35b696bd018ddcc76847309cd" +dependencies = [ + "aho-corasick", + "bstr", + "log", + "regex-automata", + "regex-syntax", +] + [[package]] name = "granit-parser" version = "1.0.0"