Add caching for PlatformIO global store in CI workflows to improve build efficiency. Updated both custom_build.yml and custom_build_test.yml to include caching paths and keys.

This commit is contained in:
Ben Allfree
2026-04-10 11:26:41 -07:00
parent 1af200eb39
commit c06c857054
2 changed files with 20 additions and 0 deletions
+10
View File
@@ -82,6 +82,16 @@ jobs:
ENC_REF=$(python3 -c "import urllib.parse,os; print(urllib.parse.quote(os.environ['REF'], safe=''))")
curl -fsSL -o /tmp/src.zip "https://codeload.github.com/${OWNER}/${REPO}/zip/${ENC_REF}"
- name: Cache PlatformIO global store
uses: actions/cache@v4
with:
path: |
~/.platformio/.cache
~/.platformio/packages
key: platformio-${{ runner.os }}-v1-${{ hashFiles('.github/workflows/custom_build.yml', '.github/workflows/custom_build_test.yml') }}
restore-keys: |
platformio-${{ runner.os }}-v1-
- name: Extract and build
id: pio
env:
+10
View File
@@ -82,6 +82,16 @@ jobs:
ENC_REF=$(python3 -c "import urllib.parse,os; print(urllib.parse.quote(os.environ['REF'], safe=''))")
curl -fsSL -o /tmp/src.zip "https://codeload.github.com/${OWNER}/${REPO}/zip/${ENC_REF}"
- name: Cache PlatformIO global store
uses: actions/cache@v4
with:
path: |
~/.platformio/.cache
~/.platformio/packages
key: platformio-${{ runner.os }}-v1-${{ hashFiles('.github/workflows/custom_build.yml', '.github/workflows/custom_build_test.yml') }}
restore-keys: |
platformio-${{ runner.os }}-v1-
- name: Extract and build
id: pio
env: