From 7ade650065a2693f41e3a858bfb25881bac06e9d Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 13 Dec 2024 15:30:20 +0100 Subject: ci: Run a fuzzy test also for the assembler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db5bc23..589ccbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Run Clippy run: cargo clippy --all-targets --all-features - fuzz: + fuzz_parser: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -42,7 +42,28 @@ jobs: - name: Build with nightly run: cargo build --verbose - - name: Fuzzy testing + - name: Fuzzy test the parser run: | cd lib/xixanta cargo +nightly fuzz run fuzz_target_1 -- -max_total_time=180 + + fuzz_assembler: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Update rust toolchain to nightly + run: | + rustup update nightly + rustup default nightly + + - name: Install cargo fuzz + run: cargo install cargo-fuzz + + - name: Build with nightly + run: cargo build --verbose + + - name: Fuzzy test the assembler + run: | + cd lib/xixanta + cargo +nightly fuzz run fuzz_target_2 -- -max_total_time=180 -- cgit v1.2.3