ci: improve workflow caching for build checks

This commit is contained in:
Jared Dohrman
2026-04-17 12:28:41 +10:00
rodzic 769414453e
commit 29aa60ea2f
2 zmienionych plików z 17 dodań i 3 usunięć
@@ -3,13 +3,27 @@ description: Setup Build Environment
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Init Cache - name: Restore uv Cache
uses: actions/cache@v5 uses: actions/cache@v5
with: with:
path: | path: |
~/.cache/uv ~/.cache/uv
.venv
key: ${{ runner.os }}-py311-uv-${{ hashFiles('uv.lock', 'pyproject.toml') }}
restore-keys: |
${{ runner.os }}-py311-uv-
- name: Restore PlatformIO Cache
uses: actions/cache@v5
with:
path: |
~/.platformio/.cache ~/.platformio/.cache
key: ${{ runner.os }}-pio ~/.platformio/packages
~/.platformio/platforms
~/.platformio/lib
key: ${{ runner.os }}-pio-${{ hashFiles('platformio.ini', 'variants/**/platformio.ini') }}
restore-keys: |
${{ runner.os }}-pio-
- name: Install Python - name: Install Python
uses: actions/setup-python@v6 uses: actions/setup-python@v6
+1 -1
Wyświetl plik
@@ -8,7 +8,7 @@ on:
- "examples/**" - "examples/**"
- "variants/**" - "variants/**"
- "platformio.ini" - "platformio.ini"
- ".github/workflows/pr-build-check.yml" - ".github/workflows/push-build-check.yml"
jobs: jobs:
build: build: