Cache Python & PlatformIO dependencies (#5822)

This commit is contained in:
Eric Severance 2025-01-11 17:40:39 -08:00 committed by GitHub
parent 6b8cf164e9
commit b4a4d2db4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 7 deletions

View File

@ -68,6 +68,12 @@ runs:
sed -i '/DDEBUG_HEAP/d' ${INI_FILE} sed -i '/DDEBUG_HEAP/d' ${INI_FILE}
done done
- name: PlatformIO ${{ inputs.arch }} download cache
uses: actions/cache@v4
with:
path: ~/.platformio/.cache
key: pio-cache-${{ inputs.arch }}-${{ hashFiles('.github/actions/**', '**.ini') }}
- name: Build ${{ inputs.board }} - name: Build ${{ inputs.board }}
shell: bash shell: bash
run: ${{ inputs.build-script-path }} ${{ inputs.board }} run: ${{ inputs.build-script-path }} ${{ inputs.board }}

View File

@ -26,13 +26,10 @@ runs:
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
cache: pip
# - name: Cache python libs cache-dependency-path: |
# uses: actions/cache@v4 .github/actions/**
# id: cache-pip # needed in if test **.ini
# with:
# path: ~/.cache/pip
# key: ${{ runner.os }}-pip
- name: Upgrade python tools - name: Upgrade python tools
shell: bash shell: bash