From ebde64830514eb68c9dbb042b457aab1a6ca7cc4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 19 Oct 2025 15:59:33 -1000 Subject: [PATCH] cleanup --- .github/workflows/ci.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 867b269154..c202dc5bbf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -433,19 +433,15 @@ jobs: python-version: ${{ env.DEFAULT_PYTHON }} cache-key: ${{ needs.common.outputs.cache-key }} - - name: Cache platformio - if: github.ref == 'refs/heads/dev' + # Cache PlatformIO packages to speed up test builds + # Note: Caches are repository-scoped, PRs from forks cannot restore from the main repo cache + - name: Cache PlatformIO uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ~/.platformio - key: platformio-test-${{ hashFiles('platformio.ini') }} - - - name: Cache platformio - if: github.ref != 'refs/heads/dev' - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 - with: - path: ~/.platformio - key: platformio-test-${{ hashFiles('platformio.ini') }} + key: platformio-test-${{ runner.os }}-${{ env.DEFAULT_PYTHON }}-${{ hashFiles('platformio.ini') }} + restore-keys: | + platformio-test-${{ runner.os }}-${{ env.DEFAULT_PYTHON }}- - name: Validate and compile components with intelligent grouping run: |