mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 15:41:52 +00:00
Merge branch 'platformio_cache_tests' into platformio_cache_tests_api
This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -433,19 +433,15 @@ jobs:
|
|||||||
python-version: ${{ env.DEFAULT_PYTHON }}
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
||||||
cache-key: ${{ needs.common.outputs.cache-key }}
|
cache-key: ${{ needs.common.outputs.cache-key }}
|
||||||
|
|
||||||
- name: Cache platformio
|
# Cache PlatformIO packages to speed up test builds
|
||||||
if: github.ref == 'refs/heads/dev'
|
# 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
|
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||||
with:
|
with:
|
||||||
path: ~/.platformio
|
path: ~/.platformio
|
||||||
key: platformio-test-${{ hashFiles('platformio.ini') }}
|
key: platformio-test-${{ runner.os }}-${{ env.DEFAULT_PYTHON }}-${{ hashFiles('platformio.ini') }}
|
||||||
|
restore-keys: |
|
||||||
- name: Cache platformio
|
platformio-test-${{ runner.os }}-${{ env.DEFAULT_PYTHON }}-
|
||||||
if: github.ref != 'refs/heads/dev'
|
|
||||||
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
|
||||||
with:
|
|
||||||
path: ~/.platformio
|
|
||||||
key: platformio-test-${{ hashFiles('platformio.ini') }}
|
|
||||||
|
|
||||||
- name: Validate and compile components with intelligent grouping
|
- name: Validate and compile components with intelligent grouping
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user