mirror of
https://github.com/MeshEnvy/mesh-forge.git
synced 2026-05-15 05:45:48 +02:00
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:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user