Skip to content

Commit 80bad63

Browse files
committed
add first draft of CI
1 parent acb7dc6 commit 80bad63

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Compile Examples
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
compile-test:
7+
runs-on: ubuntu-latest
8+
9+
env:
10+
# sketch paths to compile (recursive) for all boards
11+
UNIVERSAL_SKETCH_PATHS: '"libraries/Scheduler"'
12+
13+
strategy:
14+
fail-fast: false
15+
16+
matrix:
17+
board: [
18+
{"fqbn": "arduino-beta:mbed:nano33ble"},
19+
{"fqbn": "arduino-beta:mbed:envie_m4"},
20+
{"fqbn": "arduino-beta:mbed:envie_m7"}
21+
]
22+
23+
# make board type-specific customizations to the matrix jobs
24+
include:
25+
# normal boards
26+
- board:
27+
fqbn: "arduino-beta:mbed:nano33ble"
28+
additional-sketch-paths: '"libraries/PDM"'
29+
- board:
30+
fqbn: "arduino-beta:mbed:envie_m4"
31+
additional-sketch-paths: '"libraries/doom"'
32+
- board:
33+
fqbn: "arduino-beta:mbed:envie_m7"
34+
additional-sketch-paths: '"libraries/doom"'
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# The source files are in a subfolder of the ArduinoCore-API repository, so it's not possible to clone it directly to the final destination in the core
41+
#- name: Checkout ArduinoCore-API
42+
# uses: actions/checkout@v2
43+
#with:
44+
# repository: arduino/ArduinoCore-API
45+
# path: extras/ArduinoCore-API
46+
47+
#- name: Install ArduinoCore-API
48+
# run: mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
49+
50+
#- name: Checkout Adafruit WiFiNINA
51+
# uses: actions/checkout@v2
52+
# with:
53+
# repository: adafruit/WiFiNINA
54+
# path: adafruit/WiFiNINA
55+
56+
- name: Compile examples
57+
uses: arduino/actions/libraries/compile-examples@master
58+
with:
59+
fqbn: ${{ matrix.board.fqbn }}
60+
# libraries: |
61+
# ${{ env.UNIVERSAL_LIBRARIES }}
62+
platforms: |
63+
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
64+
- name: "arduino-beta:mbed"
65+
# Overwrite the Board Manager installation with the local platform
66+
# - source-path: "./"
67+
# name: "arduino-beta:mbed"
68+
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.additional-sketch-paths }}"
69+
# enable-size-deltas-report: 'true'
70+
verbose: 'false'
71+
72+
# - name: Save memory usage change report as artifact
73+
# if: github.event_name == 'pull_request'
74+
# uses: actions/upload-artifact@v1
75+
# with:
76+
# name: 'size-deltas-reports'
77+
# path: 'size-deltas-reports'

0 commit comments

Comments
 (0)