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: ACKc750be2352
apoelstra: ACKc750be2352
Tree-SHA512: 13ec222f760848d2089fd0e92460f18548c11b1dd2025ca804567eadd52e040c90c668126e63ce794023034e5606772cbe3293eae49327f0934c45cd1b7baf47
This commit is contained in:
commit
97153516de
|
@ -22,7 +22,7 @@ cargo-fuzz = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
honggfuzz = { version = "0.5.55", default-features = false }
|
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 = { version = "1.0.103", features = [ "derive" ] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
@ -40,16 +40,16 @@ EOF
|
||||||
done
|
done
|
||||||
|
|
||||||
# 2. Generate .github/workflows/fuzz.yml
|
# 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
|
# Automatically generated by fuzz/generate-files.sh
|
||||||
name: Fuzz
|
name: Fuzz
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
schedule:
|
||||||
branches:
|
# 5am every day UTC, this correlates to:
|
||||||
- master
|
# - 10pm PDT
|
||||||
- 'test-ci/**'
|
# - 6am CET
|
||||||
pull_request:
|
# - 4pm AEDT
|
||||||
|
- cron: '00 05 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fuzz:
|
fuzz:
|
||||||
|
@ -58,6 +58,8 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
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: [
|
fuzz_target: [
|
||||||
$(for name in $(listTargetNames); do echo " $name,"; done)
|
$(for name in $(listTargetNames); do echo " $name,"; done)
|
||||||
]
|
]
|
||||||
|
@ -65,7 +67,7 @@ $(for name in $(listTargetNames); do echo " $name,"; done)
|
||||||
- name: Install test dependencies
|
- 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
|
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/checkout@v4
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v4
|
||||||
id: cache-fuzz
|
id: cache-fuzz
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
|
Loading…
Reference in New Issue