Skip to content

Commit 8ebb846

Browse files
ci: Fix running fuzz.
1 parent 76204d5 commit 8ebb846

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ jobs:
1515
toolchain: ["stable", "beta", "nightly", "1.57.0"]
1616
include:
1717
- toolchain: stable
18-
env:
19-
DO_FUZZ: 1
18+
fuzz: 1
2019
- toolchain: beta
21-
env:
22-
DO_FUZZ: 1
20+
fuzz: 1
2321
steps:
2422
- uses: actions/checkout@v3
2523

26-
- name: Install packages
27-
if: matrix.os == 'ubuntu-latest'
24+
- name: Install packages for fuzzing
25+
if: matrix.fuzz == 1
2826
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
2927

3028
- name: Install toolchain
@@ -60,9 +58,9 @@ jobs:
6058
MIRIFLAGS: '-Zmiri-tag-raw-pointers'
6159

6260
- name: fuzz
63-
if: env.DO_FUZZ == '1'
61+
if: matrix.fuzz == 1
6462
working-directory: fuzz
65-
run: ./travis_fuzz.sh
63+
run: ./travis-fuzz.sh
6664

6765
build_result:
6866
name: homu build finished

fuzz/travis-fuzz.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -e
3-
cargo install --force honggfuzz --version 0.5.47
3+
cargo install --force honggfuzz --version "^0.5.47"
44
for TARGET in fuzz_targets/*; do
55
FILENAME=$(basename $TARGET)
66
FILE="${FILENAME%.*}"

0 commit comments

Comments
 (0)