summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2025-09-24 14:58:08 +1000
committerDamien George <damien@micropython.org>2025-09-25 00:03:56 +1000
commit046013a1ffbeccb971b6067ff389ebd0350b9e9c (patch)
treec7956261e288dc1dc20ea5b59e1abf88f0ff8608
parent91abffb4d66abd22ba4cb29beb3cde4ba7a7eda6 (diff)
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>
-rw-r--r--.github/workflows/ports_esp32.yml4
-rw-r--r--.github/workflows/ports_zephyr.yml4
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ports_esp32.yml b/.github/workflows/ports_esp32.yml
index b86c6a76f..c87552ade 100644
--- a/.github/workflows/ports_esp32.yml
+++ b/.github/workflows/ports_esp32.yml
@@ -12,6 +12,10 @@ on:
- 'lib/**'
- 'drivers/**'
- 'ports/esp32/**'
+ schedule:
+ # Scheduled run exists to keep master branch ESP-IDF cache entry hot
+ # and prevent creating many redundant per-branch cache entries instead.
+ - cron: "20 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
diff --git a/.github/workflows/ports_zephyr.yml b/.github/workflows/ports_zephyr.yml
index 9ce703439..09ffd616b 100644
--- a/.github/workflows/ports_zephyr.yml
+++ b/.github/workflows/ports_zephyr.yml
@@ -12,6 +12,10 @@ on:
- 'lib/**'
- 'ports/zephyr/**'
- 'tests/**'
+ schedule:
+ # Scheduled run exists to keep master branch Zephyr cache entry hot
+ # and prevent creating many redundant per-branch cache entries instead.
+ - cron: "40 4 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}