From b6a4badbd323746098abe6e2b97aa06a01210c05 Mon Sep 17 00:00:00 2001 From: Neil Enns Date: Sat, 14 Jan 2023 10:46:32 -0800 Subject: [PATCH] Include pico firmware in workflows (#234) Fixes #233 Co-authored-by: Neil Enns <{ID}+{username}@users.noreply.github.com> --- .github/workflows/ci.yml | 14 ++++++++------ .github/workflows/release.yml | 18 +++++++++++------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64ca0226..a9647c91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,10 +9,10 @@ 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') }} @@ -20,13 +20,13 @@ jobs: ${{ 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: | @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6a55af8..28498d3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,9 +9,9 @@ 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') }} @@ -19,13 +19,13 @@ jobs: ${{ 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: | @@ -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