Try to fix gh actions (#1117)

This commit is contained in:
Darrell 2023-11-12 15:57:14 -05:00 committed by GitHub
parent 394bd26f43
commit 434e1dbf2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -26,8 +26,8 @@ jobs:
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
path: ~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Set up Python
uses: actions/setup-python@v4
with:
@ -50,11 +50,13 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
- name: Run PlatformIO
run: pio run -e ${{ matrix.env }}
- name: Upload Artifact
- name: Rename artifact
run: cp .pio/build/${{ matrix.env }}/firmware.bin ${{ matrix.env }}.bin
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.env }}.bin
path: .pio/build/${{ matrix.env }}/firmware.bin
path: ${{ matrix.env }}.bin
release:
runs-on: ubuntu-latest
needs: build # This job needs to wait for all matrix builds to complete