Clean up older PIO actions

This commit is contained in:
Elliot Matson 2023-01-29 20:52:35 -06:00
parent 1ca5ee92c8
commit 28acbea6d3

View file

@ -28,32 +28,23 @@ jobs:
virtual_panel: -DVIRTUAL_PANE virtual_panel: -DVIRTUAL_PANE
steps: steps:
- name: Show Build Flags - name: Checkout
run: echo $PLATFORMIO_BUILD_FLAGS uses: actions/checkout@v3
- uses: actions/checkout@v3 - name: Cache pip and platformio
- name: Cache pip
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: ~/.cache/pip path: |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} ~/.cache/pip
restore-keys: ${{ runner.os }}-pip- ~/.platformio/.cache
- name: Cache PlatformIO key: ${{ runner.os }}-pio
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python 3.x - name: Set up Python 3.x
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.x' python-version: '3.x'
- name: Install Platformio - name: Install Platformio
run: | run: pip install --upgrade platformio
python -m pip install --upgrade pip
pip install --upgrade platformio
pio update
- name: Run PlatformIO - name: Run PlatformIO
env: env:
PLATFORMIO_BUILD_FLAGS: ${{ matrix.no_gfx }} ${{ matrix.no_fast_functions }} ${{ matrix.no_cie1931 }} ${{ matrix.virtual_panel }} PLATFORMIO_BUILD_FLAGS: ${{ matrix.no_gfx }} ${{ matrix.no_fast_functions }} ${{ matrix.no_cie1931 }} ${{ matrix.virtual_panel }}
PLATFORMIO_CI_SRC: ${{ matrix.example }} PLATFORMIO_CI_SRC: ${{ matrix.example }}
run: | run: pio ci -c ${{ matrix.example }}/platformio.ini
pio ci -c ${{ matrix.example }}/platformio.ini