Skip to content

Commit 1f4b007

Browse files
committed
Follow up from cron-daily-fuzz PR
I royally botched up PR #683 which changed fuzzing to run daily, fix it up by doing: - Use the correct yaml file name in `generate-files.sh`. - Actually run `generate-files.sh` to generate the yaml file. - Fix the time UTC comment (the other times were correctly set).
1 parent 4590488 commit 1f4b007

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/cron-daily-fuzz.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Automatically generated by fuzz/generate-files.sh
22
name: Fuzz
3-
43
on:
5-
push:
6-
branches:
7-
- master
8-
- 'test-ci/**'
9-
pull_request:
4+
schedule:
5+
# 6am every day UTC, this correlates to:
6+
# - 11pm PDT
7+
# - 7am CET
8+
# - 5pm AEDT
9+
- cron: '00 06 * * *'
1010

1111
jobs:
1212
fuzz:
@@ -15,6 +15,8 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18+
# We only get 20 jobs at a time, we probably don't want to go
19+
# over that limit with fuzzing because of the hour run time.
1820
fuzz_target: [
1921
roundtrip_semantic,
2022
parse_descriptor,
@@ -28,20 +30,18 @@ compile_descriptor,
2830
steps:
2931
- name: Install test dependencies
3032
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
31-
- uses: actions/checkout@v2
32-
- uses: actions/cache@v2
33+
- uses: actions/checkout@v4
34+
- uses: actions/cache@v4
3335
id: cache-fuzz
3436
with:
3537
path: |
3638
~/.cargo/bin
3739
fuzz/target
3840
target
3941
key: cache-${{ matrix.target }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
40-
- uses: actions-rs/toolchain@v1
42+
- uses: dtolnay/rust-toolchain@stable
4143
with:
42-
toolchain: '1.65'
43-
override: true
44-
profile: minimal
44+
toolchain: '1.65.0'
4545
- name: fuzz
4646
run: cd fuzz && ./fuzz.sh "${{ matrix.fuzz_target }}"
4747
- run: echo "${{ matrix.fuzz_target }}" >executed_${{ matrix.fuzz_target }}

fuzz/generate-files.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ EOF
3838
done
3939

4040
# 2. Generate .github/workflows/fuzz.yml
41-
cat > "$REPO_DIR/.github/workflows/fuzz.yml" <<EOF
41+
cat > "$REPO_DIR/.github/workflows/cron-daily-fuzz.yml" <<EOF
4242
# Automatically generated by fuzz/generate-files.sh
4343
name: Fuzz
4444
on:
4545
schedule:
46-
# 5am every day UTC, this correlates to:
46+
# 6am every day UTC, this correlates to:
4747
# - 11pm PDT
4848
# - 7am CET
4949
# - 5pm AEDT

0 commit comments

Comments
 (0)