From ff836a843469d50a2fdfb0283281458c0a300d12 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 9 Jul 2025 14:40:10 -1000 Subject: [PATCH] Fix PlatformIO cache in CI by adding platformio.ini hash to cache key (#9411) --- .github/workflows/ci.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddfda042b5..029011b69b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -349,28 +349,14 @@ jobs: uses: actions/cache@v4.2.3 with: path: ~/.platformio - key: platformio-${{ matrix.pio_cache_key }} + key: platformio-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} - name: Cache platformio if: github.ref != 'refs/heads/dev' uses: actions/cache/restore@v4.2.3 with: path: ~/.platformio - key: platformio-${{ matrix.pio_cache_key }} - - - name: Cache platformio libdeps - if: github.ref == 'refs/heads/dev' - uses: actions/cache@v4.2.3 - with: - path: .pio/libdeps - key: pio-libdeps-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} - - - name: Cache platformio libdeps - if: github.ref != 'refs/heads/dev' - uses: actions/cache/restore@v4.2.3 - with: - path: .pio/libdeps - key: pio-libdeps-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} + key: platformio-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} - name: Register problem matchers run: |