Skip to content

Comments update

Comments update #12

name: Arduino builds
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
defaults:
run:
shell: bash
jobs:
arduino_info:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/arduino-ci
steps:
- name: Arduino recent cores versions info
run: |
sudo arduino-cli update
sudo arduino-cli core list
sudo arduino-cli core list --updatable
arduino_build:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/arduino-ci
strategy:
matrix:
plat:
- arduino:avr:uno
- arduino:megaavr:uno2018
- arduino:sam:arduino_due_x
- arduino:samd:tian
- arduino:mbed_edge:edge_control
- arduino:mbed_nano:nano33ble
- arduino:mbed_nicla:nicla_sense
- arduino:mbed_opta:opta
- arduino:mbed_portenta:envie_m7
- arduino:mbed_rp2040:pico
- esp32:esp32:esp32
- esp32:esp32:esp32s2
- esp32:esp32:esp32s3
- esp32:esp32:esp32c3
- esp8266:esp8266:generic
- STMicroelectronics:stm32:GenL5
- rp2040:rp2040:rpipico
- megaTinyCore:megaavr:atxy4
example:
- DallasTemperature
env:
# NOTE: `-c' option added to make buggy esp32-arduino core happy,
# see: https://github.com/espressif/arduino-esp32/issues/8815
BUILD_FLAGS: "-c \
-DCONFIG_PWR_CTRL_ENABLED \
-DCONFIG_OVERDRIVE_ENABLED \
-DCONFIG_CRC16_ENABLED \
-DCONFIG_ITERATION_RETRIES=1"
steps:
- uses: actions/checkout@v3
- name: Build
run: |
dir=$(basename `pwd`)
arch=/tmp/${dir}.zip
cd .. && zip -qr ${arch} ${dir} && cd -
sudo arduino-cli lib install --zip-path ${arch}
sudo arduino-cli compile -b ${{ matrix.plat }} \
--build-property "compiler.cpp.extra_flags=$BUILD_FLAGS" \
examples/arduino/${{ matrix.example }}/${{ matrix.example }}.ino