Skip to content

Commit b6a4bad

Browse files
neilennsNeil Enns
andauthored
Include pico firmware in workflows (#234)
Fixes #233 Co-authored-by: Neil Enns <{ID}+{username}@users.noreply.github.com>
1 parent 8248b28 commit b6a4bad

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313

1414
- name: Cache pip
15-
uses: actions/cache@v2
15+
uses: actions/cache@v3
1616
with:
1717
path: ~/.cache/pip
1818
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
1919
restore-keys: |
2020
${{ runner.os }}-pip-
2121
2222
- name: Cache PlatformIO
23-
uses: actions/cache@v2
23+
uses: actions/cache@v3
2424
with:
2525
path: ~/.platformio
2626
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
2727

2828
- name: Set up Python
29-
uses: actions/setup-python@v2
29+
uses: actions/setup-python@v4
3030

3131
- name: Install PlatformIO
3232
run: |
@@ -39,7 +39,9 @@ jobs:
3939
run: pio run
4040

4141
- name: Archive production artifacts
42-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v3
4343
with:
4444
name: firmware
45-
path: .pio/build/**/mobiflight*.hex
45+
path: |
46+
.pio/build/**/mobiflight*.hex
47+
.pio/build/**/mobiflight*.uf2

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- name: Cache pip
14-
uses: actions/cache@v2
14+
uses: actions/cache@v3
1515
with:
1616
path: ~/.cache/pip
1717
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
1818
restore-keys: |
1919
${{ runner.os }}-pip-
2020
2121
- name: Cache PlatformIO
22-
uses: actions/cache@v2
22+
uses: actions/cache@v3
2323
with:
2424
path: ~/.platformio
2525
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
2626

2727
- name: Set up Python
28-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v4
2929

3030
- name: Install PlatformIO
3131
run: |
@@ -42,14 +42,18 @@ jobs:
4242
run: pio run
4343

4444
- name: Archive production artifacts
45-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v3
4646
with:
4747
name: firmware
48-
path: .pio/build/**/mobiflight*.hex
48+
path: |
49+
.pio/build/**/mobiflight*.hex
50+
.pio/build/**/mobiflight*.uf2
4951
5052
- name: Release
5153
uses: softprops/action-gh-release@v1
5254
env:
5355
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5456
with:
55-
files: .pio/build/**/mobiflight*.hex
57+
files: |
58+
.pio/build/**/mobiflight*.hex
59+
.pio/build/**/mobiflight*.uf2

0 commit comments

Comments
 (0)