fuzz: Update generate-files.sh

Recently we modified the fuzz job manually and forgot about the
`generate-files.sh` file.

Update the script to match the current CI job, running it now produces
the same file `cron-daily-fuzz.sh`.
This commit is contained in:
Tobin C. Harding 2024-05-02 16:02:28 +10:00
parent bc91bb33cb
commit c750be2352
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 11 additions and 9 deletions

View File

@ -22,7 +22,7 @@ cargo-fuzz = true
[dependencies]
honggfuzz = { version = "0.5.55", default-features = false }
bitcoin = { version = "0.31.0", features = [ "serde" ] }
bitcoin = { path = "../bitcoin", features = [ "serde" ] }
serde = { version = "1.0.103", features = [ "derive" ] }
serde_json = "1.0"
@ -40,16 +40,16 @@ EOF
done
# 2. Generate .github/workflows/fuzz.yml
cat > "$REPO_DIR/.github/workflows/fuzz.yml" <<EOF
cat > "$REPO_DIR/.github/workflows/cron-daily-fuzz.yml" <<EOF
# Automatically generated by fuzz/generate-files.sh
name: Fuzz
on:
push:
branches:
- master
- 'test-ci/**'
pull_request:
schedule:
# 5am every day UTC, this correlates to:
# - 10pm PDT
# - 6am CET
# - 4pm AEDT
- cron: '00 05 * * *'
jobs:
fuzz:
@ -58,6 +58,8 @@ jobs:
strategy:
fail-fast: false
matrix:
# We only get 20 jobs at a time, we probably don't want to go
# over that limit with fuzzing because of the hour run time.
fuzz_target: [
$(for name in $(listTargetNames); do echo " $name,"; done)
]
@ -65,7 +67,7 @@ $(for name in $(listTargetNames); do echo " $name,"; done)
- name: Install test dependencies
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
- uses: actions/checkout@v4
- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache-fuzz
with:
path: |