From 046013a1ffbeccb971b6067ff389ebd0350b9e9c Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 24 Sep 2025 14:58:08 +1000 Subject: [PATCH] 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 --- .github/workflows/ports_esp32.yml | 4 ++++ .github/workflows/ports_zephyr.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ports_esp32.yml b/.github/workflows/ports_esp32.yml index b86c6a76f8..c87552ade3 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 9ce7034398..09ffd616b4 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 }}