Skip to content

Commit

Permalink
ci: Fix running fuzz.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and mbrubeck committed Aug 3, 2023
1 parent 65bf3c8 commit f5bd2af
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -17,11 +17,9 @@ jobs:
os: [ubuntu-latest]
include:
- toolchain: stable
env:
DO_FUZZ: 1
fuzz: 1
- toolchain: beta
env:
DO_FUZZ: 1
fuzz: 1
- os: windows-latest
toolchain: nightly

@@ -30,8 +28,8 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install packages
if: matrix.os == 'ubuntu-latest'
- name: Install packages for fuzzing
if: runner.os == 'Linux' && matrix.fuzz == 1
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev

- name: Install toolchain
@@ -81,9 +79,9 @@ jobs:
MIRIFLAGS: '-Zmiri-tag-raw-pointers'

- name: fuzz
if: env.DO_FUZZ == '1'
if: matrix.fuzz == 1
working-directory: fuzz
run: ./travis_fuzz.sh
run: ./travis-fuzz.sh

build_result:
name: Result
2 changes: 1 addition & 1 deletion fuzz/travis-fuzz.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
cargo install --force honggfuzz --version 0.5.47
cargo install --force honggfuzz --version "^0.5.47"
for TARGET in fuzz_targets/*; do
FILENAME=$(basename $TARGET)
FILE="${FILENAME%.*}"

0 comments on commit f5bd2af

Please sign in to comment.