Skip to content

Commit fe243a4

Browse files
committed
ci: Run a daily cron job to populate the CI cache
The merge queue doesn't have a cache available because CI runs before the push to `main` happens, and cache can only be retrieved from branches that the testing commit is derived from. Work around this by adding a daily CI run on `main` so there will be something in the cache usable to PRs. It can also be run manually with `workflow_dispatch`. Link: https://github.com/orgs/community/discussions/66430
1 parent 475e60f commit fe243a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
merge_group:
55
pull_request:
66
types: [opened, synchronize, reopened]
7+
schedule:
8+
# Run CI on `main` daily so there is a cache available for merge queues.
9+
# See <https://github.com/orgs/community/discussions/66430>
10+
- cron: "0 8 * * *"
11+
workflow_dispatch:
712

813
env:
914
CARGO_TERM_COLOR: always

0 commit comments

Comments
 (0)