Skip to content

Commit

Permalink
[github] Only save platformio cache for dev branch (esphome#6711)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored May 9, 2024
1 parent 8280772 commit ca5050d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,20 @@ jobs:
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache-key: ${{ needs.common.outputs.cache-key }}

- name: Cache platformio
if: github.ref == 'refs/heads/dev'
uses: actions/[email protected]
with:
path: ~/.platformio
# yamllint disable-line rule:line-length
key: platformio-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }}
key: platformio-${{ matrix.pio_cache_key }}

- name: Cache platformio
if: github.ref != 'refs/heads/dev'
uses: actions/cache/[email protected]
with:
path: ~/.platformio
key: platformio-${{ matrix.pio_cache_key }}

- name: Install clang-tidy
run: sudo apt-get install clang-tidy-14
Expand Down

0 comments on commit ca5050d

Please sign in to comment.