forked from esphome/esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[github] Only save platformio cache for dev branch (esphome#6711)
- Loading branch information
1 parent
8280772
commit ca5050d
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|