From 589d4360fc32184d9bf62bc7366faed93f0b5a13 Mon Sep 17 00:00:00 2001 From: Kevin Valerio Date: Thu, 17 Oct 2024 11:09:22 +0200 Subject: [PATCH] CI fix attempt --- .github/workflows/rust.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 89756ff..9a1f997 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,7 +9,8 @@ on: env: CARGO_TERM_COLOR: always RUST_TEST_THREADS: "1" - + AFL_SKIP_CPUFREQ: 1 + AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES: 1 jobs: build: runs-on: ubuntu-latest @@ -31,10 +32,10 @@ jobs: - name: Set up LLVM & Clang run: | if ! command -v clang-19; then - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list - sudo apt-get update - sudo apt-get install -y llvm-19 clang-19 libclang-19-dev + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo -E apt-key add - + echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main" | sudo -E tee -a /etc/apt/sources.list.d/llvm.list + sudo -E apt-get update + sudo -E apt-get install -y llvm-19 clang-19 libclang-19-dev fi - name: Install Rust @@ -50,24 +51,20 @@ jobs: - name: Install required tools run: | cargo install ziggy cargo-afl honggfuzz grcov cargo-contract - # Consider caching the Cargo bin dir if these installations take too long. - name: Run afl-system-config run: | curl -s https://raw.githubusercontent.com/AFLplusplus/AFLplusplus/stable/afl-system-config > afl-system-config.sh chmod +x afl-system-config.sh - ./afl-system-config.sh - - - name: Run rustfmt checks - run: cargo fmt -- --check - - - name: Build in release mode - run: cargo build --release --verbose + sudo -E ./afl-system-config.sh - name: Run AFL++ configuration run: cargo afl config --build --plugins --verbose --force + - name: Build in release mode + run: cargo build --release --verbose + - name: Compile samples in `sample` working-directory: ./sample run: bash build.sh