ci: improve workflow caching for build checks
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user