From 39f8b7bbfd9c46fd74c0a2e56bbf889194e49d42 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Tue, 29 Sep 2026 12:55:24 -0700 Subject: [PATCH] ci(build_all): keep build artifacts for 1 day Every build_all_targets run uploads about 1.3 GB of firmware, and without retention-days it took the 90-day repository default. At 1,200-1,500 runs a month that held roughly 10 TB of Actions storage, about $2k/month gross. PR artifacts only exist so authors can download a build to test, and on pushes and tags the artifacts job copies them to S3 and the GitHub Release in the same run. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Ramon Roche --- .github/workflows/build_all_targets.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build_all_targets.yml b/.github/workflows/build_all_targets.yml index 605348619a5..1ed52db4a60 100644 --- a/.github/workflows/build_all_targets.yml +++ b/.github/workflows/build_all_targets.yml @@ -258,6 +258,9 @@ jobs: with: name: px4_${{matrix.group}}_build_artifacts path: artifacts/ + # Long enough for PR authors to download a build, and for the + # artifacts job below to copy push and tag builds to S3. + retention-days: 1 - uses: ./.github/actions/save-ccache if: success()