-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (71 loc) · 2.93 KB
/
test.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
name: test
on: [push]
# This is the list of jobs that will be run concurrently.
# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.
jobs:
# This is the name of the job - can be whatever.
test-matrix:
# Here we tell GitHub that the jobs must be determined
# dynamically depending on a matrix configuration.
strategy:
matrix:
# The matrix will produce one job for each configuration
# parameter of type 'arduino-platform', in this case a
# total of 2.
arduino-platform: ["arduino:samd", "arduino:avr"]
# This is usually optional but we need to statically define the
# FQBN of the boards we want to test for each platform. In the
# future the CLI might automatically detect and download the core
# needed to compile against a certain FQBN, at that point the
# following 'include' section will be useless.
include:
# This works like this: when the platformn is "arduino:samd", the
# variable 'fqbn' is set to "arduino:samd:nano_33_iot".
- arduino-platform: "arduino:avr"
fqbn: "arduino:avr:unowifi"
# This is the platform GitHub will use to run our workflow, we
# pick Windows for no particular reason.
runs-on: ubuntu-latest
# This is the list of steps this job will run.
steps:
# First of all, we clone the repo using the 'checkout' action.
- name: Checkout
uses: actions/checkout@main
# We use the 'arduino/setup-arduino-cli' action to install and
# configure the Arduino CLI on the system.
#- name: Setup Arduino CLI
# uses: arduino/setup-arduino-cli
# We then install the platform, which one will be determined
# dynamically by the build matrix.
#- name: Install platform
# run: |
# arduino-cli core update-index
# arduino-cli core install ${{ matrix.arduino-platform }}
# Finally, we compile the sketch, using the FQBN that was set
# in the build matrix.
- name: Compile Sketch
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.fqbn }}
sketch-paths: |
./
# name: Setup Arduino CLI
# uses: arduino/setup-arduino-cli@v1.0.0
# with:
# # Path to a single sketch
# sketch: # optional
# # Directory in which to search for sketches
# sketchDirectory: # optional, default is examples
# # Fully Qualified Board Name
# board: # optional, default is arduino:avr:uno
# # Directory containing Arduino libraries. Use this directory to install required 3rd-party libraries.
# libraries: # optional, default is libraries
# # <NeoPixelBus.h>
# # <NeoPixelAnimator.h>
# # <ESP8266WiFi.h>
# # <Wire.h>
# # <LiquidCrystal_I2C.h>
# # Directory containing Arduino platforms
# hardware: # optional, default is hardware