Skip to content

Commit 046013a

Browse files
projectgusdpgeorge
authored andcommitted
github/workflows: Run esp32&zephyr daily to keep mstr branch caches hot.
Currently it seems if master branch doesn't build for 1-2 days then the cached ESP-IDF install (1.6GB) and Zephyr workspace (3.1GB) caches expire. Then each PR branch has to create its own redundant cache instead of falling back to the default branch cache, which is expensive and quickly blows our 10GB cache limit. Currently this is mitigated (and possibly happens more frequently) due to GitHub's relatively soft enforcement of the limit (at time of writing we're using 33GB of 10GB), but apparently they're going to start enforcing it more aggressively in October. (We may find we need to do this twice a day...) This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 91abffb commit 046013a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ports_esp32.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- 'lib/**'
1313
- 'drivers/**'
1414
- 'ports/esp32/**'
15+
schedule:
16+
# Scheduled run exists to keep master branch ESP-IDF cache entry hot
17+
# and prevent creating many redundant per-branch cache entries instead.
18+
- cron: "20 0 * * *"
1519

1620
concurrency:
1721
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/ports_zephyr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- 'lib/**'
1313
- 'ports/zephyr/**'
1414
- 'tests/**'
15+
schedule:
16+
# Scheduled run exists to keep master branch Zephyr cache entry hot
17+
# and prevent creating many redundant per-branch cache entries instead.
18+
- cron: "40 4 * * *"
1519

1620
concurrency:
1721
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)