fix some caching

pull/271/head
Peter Buchegger 2023-02-19 12:59:32 +01:00
rodzic eab5f3c2e6
commit c4a6700ab6
1 zmienionych plików z 16 dodań i 15 usunięć

Wyświetl plik

@ -15,19 +15,23 @@ jobs:
name: Compile Firmware
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
key: compile-cache
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
python-version: '3.10'
- name: Install PlatformIO
shell: bash
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Checkout code
uses: actions/checkout@v3
- name: Build PlatformIO Project
run: pio run
- name: Upload artifacts
@ -84,17 +88,14 @@ jobs:
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
steps:
- name: Cache pip
- name: Setup Cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-cache
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: pio-cache
- name: Set up Python
path: |
~/.cache/pip
~/.platformio
key: remote-cache
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'