Skip to content

Commit

Permalink
Include pico firmware in workflows (#234)
Browse files Browse the repository at this point in the history
Fixes #233

Co-authored-by: Neil Enns <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
neilenns and Neil Enns authored Jan 14, 2023
1 parent 8248b28 commit b6a4bad
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Cache pip
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4

- name: Install PlatformIO
run: |
Expand All @@ -39,7 +39,9 @@ jobs:
run: pio run

- name: Archive production artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: firmware
path: .pio/build/**/mobiflight*.hex
path: |
.pio/build/**/mobiflight*.hex
.pio/build/**/mobiflight*.uf2
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Cache pip
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4

- name: Install PlatformIO
run: |
Expand All @@ -42,14 +42,18 @@ jobs:
run: pio run

- name: Archive production artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: firmware
path: .pio/build/**/mobiflight*.hex
path: |
.pio/build/**/mobiflight*.hex
.pio/build/**/mobiflight*.uf2
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: .pio/build/**/mobiflight*.hex
files: |
.pio/build/**/mobiflight*.hex
.pio/build/**/mobiflight*.uf2

0 comments on commit b6a4bad

Please sign in to comment.