Skip to content

Commit

Permalink
Standardized firmware names
Browse files Browse the repository at this point in the history
We use prettier names for them, and just makes the release process easier.
  • Loading branch information
SeongGino authored Jun 26, 2024
1 parent 1b89ef7 commit 7efd05d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/arduino-cli-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,47 @@ jobs:
include:
- name: Raspberry Pi Pico
fqbn: rpipico
pretty: rpipico
flags: freq=133,usbstack=tinyusb,opt=Optimize3

- name: Raspberry Pi Pico W (USB)
fqbn: rpipicow
pretty: rpipicow-noBT
flags: freq=133,usbstack=tinyusb,opt=Optimize3

- name: Raspberry Pi Pico W (Bluetooth)
fqbn: rpipicow
pretty: rpipicow-btBETA
flags: freq=133,usbstack=tinyusb,opt=Optimize3,ipbtstack=ipv4btcble,wificountry=worldwide

- name: Adafruit ItsyBitsy RP2040
fqbn: adafruit_itsybitsy
pretty: adafruitItsy
flags: freq=133,usbstack=tinyusb,opt=Optimize3

- name: Adafruit KB2040
fqbn: adafruit_kb2040
pretty: adafruitKB2040
flags: freq=133,usbstack=tinyusb,opt=Optimize3

- name: Arduino Nano RP2040 Connect
fqbn: arduino_nano_connect
pretty: arduinoNano
flags: freq=133,usbstack=tinyusb,opt=Optimize3

- name: VCC-GND YD RP2040
fqbn: vccgnd_yd_rp2040
pretty: vccgndYD
flags: freq=133,usbstack=tinyusb,opt=Optimize3

- name: Waveshare RP2040 Zero
fqbn: waveshare_rp2040_zero
pretty: waveshareZero
flags: freq=133,usbstack=tinyusb,opt=Optimize3

- name: Generic RP2040
fqbn: generic
pretty: generic
flags: freq=133,usbstack=tinyusb,opt=Optimize3

steps:
Expand All @@ -67,21 +76,21 @@ jobs:
run: arduino-cli compile -e --fqbn rp2040:rp2040:${{matrix.fqbn}}:${{matrix.flags}} SamcoEnhanced --libraries libraries

- name: Rename build file
run: cp ${{github.workspace}}/SamcoEnhanced/build/rp2040.rp2040.${{matrix.fqbn}}/SamcoEnhanced.ino.uf2 OpenFIREfw.${{ matrix.fqbn }}.uf2
run: cp ${{github.workspace}}/SamcoEnhanced/build/rp2040.rp2040.${{matrix.fqbn}}/SamcoEnhanced.ino.uf2 OpenFIREfw.${{ matrix.pretty }}.uf2

# TODO: when USB + Bluetooth is fixed, we won't need the Pico W method
- name: Upload artifact (Non-Pico W)
if: ${{ matrix.fqbn != 'rpipicow' }}
uses: actions/[email protected]
with:
path: OpenFIREfw.${{ matrix.fqbn }}.uf2
path: OpenFIREfw.${{ matrix.pretty }}.uf2
name: OpenFIREfw - ${{ matrix.name }}
if-no-files-found: error

- name: Upload artifact (Pico W)
if: ${{ matrix.fqbn == 'rpipicow' }}
uses: actions/[email protected]
with:
path: OpenFIREfw.${{ matrix.fqbn }}.uf2
path: OpenFIREfw.${{ matrix.pretty }}.uf2
name: OpenFIREfw - ${{ matrix.name }}
if-no-files-found: error

0 comments on commit 7efd05d

Please sign in to comment.