fix(ci): reduce workflow cache churn

- GitHub Actions caching:
  - replace implicit setup-java cache writes with explicit Gradle cache restore/save steps
  - only persist the shared Gradle cache from long-lived develop and release workflows
  - remove the unnecessary QEMU setup from the single-arch smoke build
  - disable QEMU image caching in multi-arch publish workflows to stop repeated binfmt cache entries
- CodeQL workflow:
  - replace the generated advanced template with a pinned repo-owned CodeQL workflow
  - add per-ref concurrency to cancel superseded CodeQL runs before they create more caches
  - restrict dependency caching to Java, using restore-only on pull requests and full caching on long-lived runs
  - disable trap caching and turn off PR overlay database caching to avoid repetitive low-value CodeQL caches
- Validation:
  - validated the edited workflow YAML with yq
  - did not execute the workflows locally
This commit is contained in:
James Cox
2026-04-22 17:26:38 -04:00
committed by Zach Yale
parent 2ad937a761
commit 3f9d3e0d8a
6 changed files with 67 additions and 86 deletions
+1 -3
View File
@@ -46,6 +46,7 @@ jobs:
with:
checkout_ref: ${{ github.sha }}
publish_test_results: false
save_gradle_cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
packaging-smoke-test:
name: Packaging Smoke Test
@@ -60,9 +61,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set Up QEMU for Multi-Arch Builds
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0