2022-08-26 13:49:29 +02:00
|
|
|
name: CI
|
|
|
|
|
2022-09-24 21:42:20 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
env:
|
|
|
|
ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL: false
|
2022-08-26 13:49:29 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-09-24 21:42:20 +02:00
|
|
|
ci:
|
|
|
|
name: ${{ matrix.hwVersion }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
hwVersion: [HW5, HW4, HW3, HW2, HW1]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install Arduino CLI
|
|
|
|
uses: arduino/setup-arduino-cli@v1
|
|
|
|
|
|
|
|
- name: Install platform
|
|
|
|
run: |
|
|
|
|
arduino-cli core update-index
|
|
|
|
arduino-cli core install arduino:avr
|
|
|
|
|
|
|
|
- name: Install libraries
|
|
|
|
run: |
|
|
|
|
arduino-cli lib install \
|
|
|
|
"SdFat" \
|
|
|
|
"Adafruit SSD1306" \
|
|
|
|
"Adafruit GFX Library" \
|
|
|
|
"Adafruit BusIO" \
|
|
|
|
"U8g2" \
|
|
|
|
"Adafruit NeoPixel" \
|
|
|
|
"RotaryEncoder" \
|
|
|
|
"Etherkit Si5351" \
|
|
|
|
"RTClib" \
|
|
|
|
"FreqCount"
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Compile
|
|
|
|
run: |
|
|
|
|
cd Cart_Reader/
|
|
|
|
# Select hardware version by uncommenting it (using regular expression)
|
|
|
|
sed -i 's/^\/\/[\t ]*#define ${{ matrix.hwVersion }}/#define ${{ matrix.hwVersion }}/g' Cart_Reader.ino
|
|
|
|
arduino-cli compile --fqbn arduino:avr:mega
|