Try to fix gh actions (#1117)
This commit is contained in:
parent
394bd26f43
commit
434e1dbf2a
|
@ -26,8 +26,8 @@ jobs:
|
||||||
- name: Cache PlatformIO
|
- name: Cache PlatformIO
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.platformio
|
path: ~/.platformio/.cache
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
key: ${{ runner.os }}-pio
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
@ -50,11 +50,13 @@ jobs:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run -e ${{ matrix.env }}
|
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
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.env }}.bin
|
name: ${{ matrix.env }}.bin
|
||||||
path: .pio/build/${{ matrix.env }}/firmware.bin
|
path: ${{ matrix.env }}.bin
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build # This job needs to wait for all matrix builds to complete
|
needs: build # This job needs to wait for all matrix builds to complete
|
||||||
|
|
Loading…
Reference in New Issue