Skip to content

Commit bccf17b

Browse files
committed
move the main workflow changes to develop
1 parent d8feee1 commit bccf17b

File tree

1 file changed

+62
-44
lines changed

1 file changed

+62
-44
lines changed

.github/workflows/compile-sketch.yml

Lines changed: 62 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Cross-compilation
22

33
on:
4-
# - push
5-
#- pull_request
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
68

79

810
jobs:
@@ -17,72 +19,79 @@ jobs:
1719
# Uno
1820
# https://github.com/arduino/ArduinoCore-avr/blob/master/boards.txt
1921
- fqbn: arduino:avr:mega
20-
platforms: |
21-
- name: arduino:avr
22-
source-url: https://downloads.arduino.cc/packages/package_index.json
22+
# platforms: |
23+
name: arduino:avr
24+
source-url: https://downloads.arduino.cc/packages/package_index.json
2325

2426
# ESP32
2527
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
2628
- fqbn: esp32:esp32:esp32
27-
platforms: |
28-
- name: esp32:esp32
29-
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
29+
# platforms: |
30+
name: esp32:esp32
31+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
3032

3133
# ESP32-S2
3234
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
3335
- fqbn: esp32:esp32:esp32s2
34-
platforms: |
35-
- name: esp32:esp32
36-
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
36+
# platforms: |
37+
name: esp32:esp32
38+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
3739

3840
# ESP32-C3
3941
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
4042
- fqbn: esp32:esp32:esp32c3
41-
platforms: |
42-
- name: esp32:esp32
43-
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
43+
# platforms: |
44+
name: esp32:esp32
45+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
4446

4547
# Artemis / Apollo3
4648
# https://github.com/sparkfun/Arduino_Apollo3/blob/main/boards.txt
4749
- fqbn: SparkFun:apollo3:sfe_artemis_atp
48-
platforms: |
49-
- name: SparkFun:apollo3
50-
source-url: https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/master/package_sparkfun_apollo3_index.json
50+
# platforms: |
51+
name: SparkFun:apollo3
52+
source-url: https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/master/package_sparkfun_apollo3_index.json
5153

5254
# ESP8266
5355
# https://github.com/esp8266/Arduino/blob/master/boards.txt
5456
- fqbn: esp8266:esp8266:thingdev
55-
platforms: |
56-
- name: esp8266:esp8266
57-
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
57+
# platforms: |
58+
name: esp8266:esp8266
59+
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
5860

5961
# SAMD21
6062
# https://github.com/arduino/ArduinoCore-samd/blob/master/boards.txt
6163
- fqbn: arduino:samd:mkr1000
62-
platforms: |
63-
- name: arduino:samd
64-
# source-url: https://downloads.arduino.cc/packages/package_index.json
64+
# platforms: |
65+
name: arduino:samd
66+
source-url: https://downloads.arduino.cc/packages/package_index.json
6567

6668
# Nano BLE 33 / nRF52840
6769
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
6870
- fqbn: arduino:mbed:nano33ble
69-
platforms: |
70-
- name: arduino:mbed
71-
# source-url: https://downloads.arduino.cc/packages/package_index.json
71+
# platforms: |
72+
name: arduino:mbed
73+
source-url: https://downloads.arduino.cc/packages/package_index.json
7274

7375
# RP2040
7476
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
7577
- fqbn: rp2040:rp2040:sparkfun_promicrorp2040
76-
platforms: |
77-
- name: rp2040:rp2040
78-
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
78+
# platforms: |
79+
name: rp2040:rp2040
80+
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
81+
82+
# RP2350
83+
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
84+
- fqbn: rp2040:rp2040:sparkfun_promicrorp2350
85+
# platforms: |
86+
name: rp2040:rp2040
87+
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
7988

8089
# STM32
8190
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
8291
- fqbn: STMicroelectronics:stm32:GenF4
83-
platforms: |
84-
- name: STMicroelectronics:stm32
85-
source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
92+
# platforms: |
93+
name: STMicroelectronics:stm32
94+
source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
8695

8796
steps:
8897
- name: Checkout
@@ -91,19 +100,28 @@ jobs:
91100
- name: Branch name
92101
run: echo running on branch ${GITHUB_REF##*/}
93102

94-
- name: Compile Sketch
95-
uses: arduino/[email protected]
96-
with:
97-
platforms: ${{ matrix.board.platforms }}
98-
fqbn: ${{ matrix.board.fqbn }}
99-
libraries: |
100-
- source-path: ./
101-
sketch-paths: |
102-
- test/test
103-
enable-warnings-report: true
104-
enable-deltas-report: true
105-
verbose: true
103+
# Setup Arduino command line - install esp32 and all the libs flux needs
104+
- name: Arduino - Install and setup the Arduino CLI
105+
uses: arduino/setup-arduino-cli@v2
106+
107+
- name: Arduino - Start config file
108+
run: arduino-cli config init --additional-urls ${{ matrix.board.source-url}}
109+
110+
- name: Arduino - Update index
111+
run: arduino-cli core update-index
106112

113+
- name: Arduino - Install platform
114+
run: arduino-cli core install ${{ matrix.board.name}}
115+
116+
- name: Arduino - Install libraries
117+
run: |
118+
arduino-cli config set library.enable_unsafe_install true
119+
arduino-cli version
120+
arduino-cli lib install 'SparkFun Toolkit'
121+
122+
- name: Compile Sketch
123+
run: arduino-cli compile --fqbn ${{ matrix.board.fqbn }} examples/Example01_Basic_OneShot --library .
124+
107125
# outputs:
108126
# report-artifact-name: ${{ steps.report-artifact-name.outputs.report-artifact-name }}
109127

0 commit comments

Comments
 (0)