Merge rust-bitcoin/rust-bitcoin#2737: fuzz: Update generate-files.sh

c750be2352 fuzz: Update generate-files.sh (Tobin C. Harding)

Pull request description:

  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`.

ACKs for top commit:
  storopoli:
    ACK c750be2352
  apoelstra:
    ACK c750be2352

Tree-SHA512: 13ec222f760848d2089fd0e92460f18548c11b1dd2025ca804567eadd52e040c90c668126e63ce794023034e5606772cbe3293eae49327f0934c45cd1b7baf47
This commit is contained in:
Andrew Poelstra 2024-05-02 13:10:28 +00:00
commit 97153516de
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
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: |