-
Notifications
You must be signed in to change notification settings - Fork 19
67 lines (67 loc) · 2 KB
/
arduino-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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