Simplify solenoid settings to a global ON and a single autofire wait value #151
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenFIRE Builds | |
on: | |
push: | |
pull_request: | |
jobs: | |
arduino-build: | |
name: ${{ matrix.name }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- name: Raspberry Pi Pico | |
fqbn: rpipico | |
pretty: rpipico | |
flags: freq=133,usbstack=tinyusb,flash=2097152_65536,opt=Optimize3 | |
- name: Raspberry Pi Pico W (USB) | |
fqbn: rpipicow | |
pretty: rpipicow-noBT | |
flags: freq=133,usbstack=tinyusb,flash=2097152_65536,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,flash=8388608_65536,opt=Optimize3 | |
- name: Adafruit KB2040 | |
fqbn: adafruit_kb2040 | |
pretty: adafruitKB2040 | |
flags: freq=133,usbstack=tinyusb,flash=8388608_65536,opt=Optimize3 | |
- name: Arduino Nano RP2040 Connect | |
fqbn: arduino_nano_connect | |
pretty: arduinoNano | |
flags: freq=133,usbstack=tinyusb,flash=16777216_65536,opt=Optimize3 | |
- name: VCC-GND YD RP2040 | |
fqbn: vccgnd_yd_rp2040 | |
pretty: vccgndYD | |
flags: freq=133,usbstack=tinyusb,flash=2097152_1048576,opt=Optimize3 | |
- name: Waveshare RP2040 Zero | |
fqbn: waveshare_rp2040_zero | |
pretty: waveshareZero | |
flags: freq=133,usbstack=tinyusb,flash=2097152_65536,opt=Optimize3 | |
- name: Generic RP2040 | |
fqbn: generic | |
pretty: generic | |
flags: freq=133,usbstack=tinyusb,flash=2097152_1048576,opt=Optimize3 | |
steps: | |
- name: Checkout OpenFIRE-Firmware | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install Arduino-cli | |
uses: arduino/setup-arduino-cli@v2 | |
# arduino nano uses this just to access LEDs, grr... | |
- name: Install Arduino Nano Connect library | |
if: ${{ matrix.fqbn == 'arduino_nano_connect' }} | |
run: arduino-cli lib install WiFiNINA | |
- name: Setting up Arduino-cli | |
run: arduino-cli core install rp2040:rp2040 --additional-urls https://github.com/SeongGino/arduino-pico/releases/download/3.9.2-fix/package_rp2040_fix_index_orig.json | |
- name: Get short SHA | |
id: get-short-sha | |
run: echo "id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Compile for ${{ matrix.name }} | |
run: > | |
arduino-cli compile -e | |
--fqbn rp2040:rp2040:${{matrix.fqbn}}:${{matrix.flags}} | |
OpenFIREmain | |
--libraries libraries | |
--build-property 'build.extra_flags= | |
-DGIT_HASH="${{steps.get-short-sha.outputs.id}}"' | |
- name: Rename build file | |
run: cp ${{github.workspace}}/OpenFIREmain/build/rp2040.rp2040.${{matrix.fqbn}}/OpenFIREmain.ino.uf2 OpenFIREfw.${{ matrix.pretty }}.uf2 | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: OpenFIREfw.${{ matrix.pretty }}.uf2 | |
name: OpenFIREfw - ${{ matrix.name }} | |
if-no-files-found: error | |