-
-
Notifications
You must be signed in to change notification settings - Fork 64
131 lines (131 loc) · 5.38 KB
/
push.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
on: [push, pull_request, workflow_dispatch]
name: Test
jobs:
test:
name: Test for Board ${{ matrix.board }}
runs-on: ubuntu-latest
strategy:
matrix:
board:
[
"Legion2:avr:leonardoclp",
"Legion2:avr:promicro5vclp",
"Legion2:avr:promicro3vclp",
]
steps:
- uses: actions/checkout@v4
- name: Build for ${{ matrix.board }}
uses: ArminJo/arduino-test-compile@v3
with:
cli-version: 0.18.3
arduino-board-fqbn: ${{ matrix.board }}
platform-url: https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json,https://raw.githubusercontent.com/Legion2/CorsairLightingProtocolBoards/master/package_Legion2_CorsairLightingProtocolBoards_index.json
arduino-platform: arduino:avr@1.8.3,SparkFun:avr@1.1.13,Legion2:avr@0.3.1
required-libraries: FastLED@3.5.0
sketch-names: LightingNodePRO.ino,
SingleStripLightingNodePRO.ino,
CommanderPRO.ino,
DeviceIDTool.ino,
RepeatAndScale.ino,
TransformLLFansFormatToStrip.ino,
LS100.ino,
LT100.ino,
LightingNodeCORE.ino,
NonAddressable.ino,
AdditionalFeatures.ino,
AmbientBacklight.ino,
MultipleFans.ino,
DebugSketch.ino,
NoEEPROM.ino
build-properties: '{"DebugSketch": "-DDEBUG -DVERBOSE -DPRINT_COMMAND=true -DPRINT_RESPONSE=true -DPRINT_LOOP=true -DPRINT_UPDATE=true"}'
testUnoMega:
name: Test Arduino Uno/Mega sketches for Board ${{ matrix.board }}
runs-on: ubuntu-latest
strategy:
matrix:
board: ["arduino:avr:uno", "arduino:avr:mega:cpu=atmega2560"]
steps:
- uses: actions/checkout@v4
- name: Build for ${{ matrix.board }}
uses: ArminJo/arduino-test-compile@v3
with:
cli-version: 0.18.3
arduino-board-fqbn: ${{ matrix.board }}
arduino-platform: arduino:avr@1.8.3
required-libraries: FastLED@3.5.0
sketch-names: HoodLoader2UnoMegaController.ino
test16u2:
name: Test 16u2 sketch for Board ${{ matrix.board }}
runs-on: ubuntu-latest
strategy:
matrix:
board: ["Legion2:avr:HoodLoader2atmega16u2clp"]
steps:
- uses: actions/checkout@v4
- name: Build for ${{ matrix.board }}
uses: ArminJo/arduino-test-compile@v3
with:
cli-version: 0.18.3
arduino-board-fqbn: ${{ matrix.board }}
platform-url: https://raw.githubusercontent.com/NicoHood/HoodLoader2/master/package_NicoHood_HoodLoader2_index.json,https://raw.githubusercontent.com/Legion2/CorsairLightingProtocolBoards/master/package_Legion2_CorsairLightingProtocolBoards_index.json
arduino-platform: arduino:avr@1.8.3,HoodLoader2:avr@2.0.5,Legion2:avr@0.3.1
required-libraries: FastLED@3.5.0
sketch-names: HoodLoader2CLPBridge.ino
testAdafruitSAMD:
name: Test for Board ${{ matrix.board }}
runs-on: ubuntu-latest
strategy:
matrix:
board:
[
"adafruit:samd:adafruit_feather_m0:usbstack=tinyusb",
"adafruit:samd:adafruit_metro_m0:usbstack=tinyusb",
"adafruit:samd:adafruit_circuitplayground_m0:usbstack=tinyusb",
"adafruit:samd:adafruit_gemma_m0:usbstack=tinyusb",
"adafruit:samd:adafruit_trinket_m0:usbstack=tinyusb",
"adafruit:samd:adafruit_qtpy_m0:usbstack=tinyusb",
"adafruit:samd:adafruit_itsybitsy_m0:usbstack=tinyusb",
"adafruit:samd:adafruit_itsybitsy_m4:usbstack=tinyusb",
"adafruit:samd:adafruit_metro_m4_airliftlite:usbstack=tinyusb",
# "adafruit:samd:adafruit_feather_m4:usbstack=tinyusb", #Should work but doesn't have the pins needed for the sketch
"adafruit:samd:adafruit_matrixportal_m4:usbstack=tinyusb"
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build for ${{ matrix.board }}
uses: ArminJo/arduino-test-compile@v3
with:
cli-version: 0.18.3
arduino-board-fqbn: ${{ matrix.board }}
platform-url: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
arduino-platform: adafruit:samd@1.7.8
required-libraries: FastLED@3.5.0,Adafruit TinyUSB Library@1.9.2
sketch-names: TinyUSB.ino
testAdafruitnRF52:
name: Test for Board ${{ matrix.board }}
runs-on: ubuntu-latest
strategy:
matrix:
board:
[
"adafruit:nrf52:feather52840",
"adafruit:nrf52:itsybitsy52840",
# "adafruit:nrf52:cplaynrf52840", #Should work but doesn't have the pins needed for the sketch
"adafruit:nrf52:metro52840"
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get adafruit-nrfutil
run: |
pip3 install adafruit-nrfutil --user
- name: Build for ${{ matrix.board }}
uses: ArminJo/arduino-test-compile@v3
with:
cli-version: 0.18.3
arduino-board-fqbn: ${{ matrix.board }}
platform-url: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
arduino-platform: adafruit:nrf52@1.3.0
required-libraries: FastLED@3.5.0,Adafruit TinyUSB Library@1.9.2
sketch-names: TinyUSB.ino