This is an automated email from the ASF dual-hosted git repository.
sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 2f64b5273 ci: Run master builds on schedule instead of on push
2f64b5273 is described below
commit 2f64b527323eee91b0b2ccd44df28091302fddc6
Author: Szymon Janc <[email protected]>
AuthorDate: Fri Oct 23 12:58:20 2026 +0200
ci: Run master builds on schedule instead of on push
Build workflows were run on every push to master. ASF shares a single
pool of GitHub Actions runners among all its projects and Linux jobs
often wait hours in the queue. Since a new push to master cancels the
in-progress run, most of master runs were cancelled before completion,
wasting runner time already spent on them and rarely refreshing the
caches that are saved only from master.
Pull requests are already built before merge, so a periodic check of
master is enough to catch breakage caused by interactions between
merged changes or by external changes (newt, toolchains, runner
images). This also reduces load on ASF infrastructure and shortens
queues for pull request runs.
Build is now run daily at 01:42 UTC, Validate hw/bsp folder weekly on
Sundays at 02:42 UTC and Bootloader (main), which builds against
mcuboot main and was already run nightly, weekly on Saturdays. Pull
request triggers are unchanged. Scheduled runs are on master ref, so
caches are still saved from them.
Assisted-by: Claude:claude-opus-5-5
---
.github/workflows/build.yml | 7 +++----
.github/workflows/build_bootloader_main.yml | 5 +----
.github/workflows/validate_bsp_folder.yml | 5 ++---
3 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 67f8ac3a4..b1e098d52 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -20,12 +20,11 @@
name: Build
on:
- push:
- branches:
- - master
pull_request:
+ schedule:
+ - cron: 42 1 * * *
-# New push to master or pull request cancels its in-progress run
+# New push to pull request cancels its in-progress run
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
cancel-in-progress: true
diff --git a/.github/workflows/build_bootloader_main.yml
b/.github/workflows/build_bootloader_main.yml
index 9c71c8d6d..a781ed722 100644
--- a/.github/workflows/build_bootloader_main.yml
+++ b/.github/workflows/build_bootloader_main.yml
@@ -20,11 +20,8 @@
name: Bootloader (main)
on:
- push:
- branches:
- - master
schedule:
- - cron: 42 0 * * *
+ - cron: 42 0 * * 6
concurrency:
group: ${{ github.workflow }}
diff --git a/.github/workflows/validate_bsp_folder.yml
b/.github/workflows/validate_bsp_folder.yml
index d036bf7e2..c06a07414 100644
--- a/.github/workflows/validate_bsp_folder.yml
+++ b/.github/workflows/validate_bsp_folder.yml
@@ -20,10 +20,9 @@
name: Validate hw/bsp folder
on:
- push:
- branches:
- - master
pull_request:
+ schedule:
+ - cron: 42 2 * * 0
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.sha }}