Skip to content

Commit 7b75852

Browse files
committed
[CI] GitHub action first test
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 6f177b8 commit 7b75852

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.github/workflows/CI-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The bare minimum of code needed to start an Arduino sketch.

0 commit comments

Comments
 (0)