Skip to content

Commit

Permalink
CI fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-valerio committed Oct 17, 2024
1 parent dcd0d01 commit 589d436
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 589d436

Please sign in to comment.