Skip to content

Commit 6bdcca9

Browse files
committed
fix: fuzz CI
cargo install cargo-fuzz fails when cargo-fuzz is already installed. So we install with --force. Also, it seems that I edited fuzz/Cargo.toml directly although the file is generated via fuzz/generate-files.sh. This commit fixes that.
1 parent e41ca4c commit 6bdcca9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/fuzz.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ parse_human,
4343
components: "llvm-tools-preview"
4444

4545
- name: Install Dependencies
46-
run: cargo update && cargo update -p cc --precise 1.0.83 && cargo install cargo-fuzz
46+
run: cargo update && cargo update -p cc --precise 1.0.83 && cargo install --force cargo-fuzz
4747

4848
- name: Run Fuzz Target
4949
run: ./fuzz/fuzz.sh "${{ matrix.fuzz_target }}"

fuzz/generate-files.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ simplicity-lang = { path = "..", features = ["test-utils"] }
2626
2727
[dev-dependencies]
2828
base64 = "0.22.1"
29+
30+
[lints.rust]
31+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
2932
EOF
3033

3134
for targetFile in $(listTargetFiles); do
@@ -85,7 +88,7 @@ $(for name in $(listTargetNames); do echo "$name,"; done)
8588
components: "llvm-tools-preview"
8689
8790
- name: Install Dependencies
88-
run: cargo update && cargo update -p cc --precise 1.0.83 && cargo install cargo-fuzz
91+
run: cargo update && cargo update -p cc --precise 1.0.83 && cargo install --force cargo-fuzz
8992
9093
- name: Run Fuzz Target
9194
run: ./fuzz/fuzz.sh "\${{ matrix.fuzz_target }}"

0 commit comments

Comments
 (0)