File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed
CI/build/examples/BareMinimum Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI Build
2
+ on : [push, pull_request]
3
+ jobs :
4
+ # This is the name of the job - can be whatever.
5
+ build :
6
+
7
+ # Here we tell GitHub that the jobs must be determined
8
+ # dynamically depending on a matrix configuration.
9
+ strategy :
10
+ matrix :
11
+ fqbn : [
12
+ " STM32:stm32:Disco:pnum=DISCO_L475VG_IOT"
13
+ ]
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ # This is the list of steps this job will run.
18
+ steps :
19
+ # First of all, we clone the repo using the checkout action.
20
+ - name : Checkout
21
+ uses : actions/checkout@master
22
+
23
+ # We use the arduino/setup-arduino-cli action to install and
24
+ # configure the Arduino CLI on the system.
25
+ - name : Setup Arduino CLI
26
+ uses : arduino/setup-arduino-cli@v1.0.0
27
+
28
+ # We then install the platform
29
+ - name : Install platform
30
+ env :
31
+ STM32_JSON : https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
32
+ run : |
33
+ arduino-cli core update-index --additional-urls $STM32_JSON
34
+ arduino-cli core install STM32:stm32 --additional-urls $STM32_JSON
35
+
36
+ # Finally, we compile the sketch, using the FQBN that was set
37
+ # in the build matrix.
38
+ - name : Compile Sketch
39
+ run : arduino-cli compile --fqbn ${{ matrix.fqbn }} ./CI/build/examples/BareMinimum
Original file line number Diff line number Diff line change
1
+ void setup () {
2
+ // put your setup code here, to run once:
3
+
4
+ }
5
+
6
+ void loop () {
7
+ // put your main code here, to run repeatedly:
8
+
9
+ }
Original file line number Diff line number Diff line change
1
+ The bare minimum of code needed to start an Arduino sketch.
You can’t perform that action at this time.
0 commit comments