7
7
runs-on : ubuntu-latest
8
8
9
9
env :
10
- # sketch paths to compile (recursive) for all boards
10
+ # sketch paths to compile (recursive) compatible with all boards
11
11
UNIVERSAL_SKETCH_PATHS : ' "libraries/Scheduler"'
12
12
13
13
strategy :
20
20
{"fqbn": "arduino-beta:mbed:envie_m7"}
21
21
]
22
22
23
- # make board type-specific customizations to the matrix jobs
23
+ # compile only the examples compatible with each board
24
24
include :
25
- # normal boards
26
25
- board :
27
26
fqbn : " arduino-beta:mbed:nano33ble"
28
27
additional-sketch-paths : ' "libraries/PDM" "libraries/ThreadDebug"'
@@ -38,40 +37,36 @@ jobs:
38
37
uses : actions/checkout@v2
39
38
40
39
# 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
40
+ - name : Checkout ArduinoCore-API
41
+ uses : actions/checkout@v2
42
+ with :
43
+ repository : arduino/ArduinoCore-API
44
+ ref : namespace_arduino
45
+ path : ArduinoCore-API
46
46
47
- # - name: Install ArduinoCore-API
48
- # run: mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API /api" "$GITHUB_WORKSPACE/cores/arduino"
47
+ - name : Remove old symlink to api
48
+ run : rm "$GITHUB_WORKSPACE/cores/arduino /api"
49
49
50
- # - name: Checkout Adafruit WiFiNINA
51
- # uses: actions/checkout@v2
52
- # with:
53
- # repository: adafruit/WiFiNINA
54
- # path: adafruit/WiFiNINA
50
+ - name : Install ArduinoCore-API
51
+ run : mv "$GITHUB_WORKSPACE/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
55
52
56
53
- name : Compile examples
57
54
uses : arduino/actions/libraries/compile-examples@master
58
55
with :
59
56
fqbn : ${{ matrix.board.fqbn }}
60
- # libraries: |
61
- # ${{ env.UNIVERSAL_LIBRARIES }}
62
57
platforms : |
63
58
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
64
59
- name: "arduino-beta:mbed"
65
60
# Overwrite the Board Manager installation with the local platform
66
- # - source-path: "./"
67
- # name: "arduino-beta:mbed"
61
+ - source-path: "./"
62
+ name: "arduino-beta:mbed"
68
63
sketch-paths : " ${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.additional-sketch-paths }}"
69
- # enable-size-deltas-report: 'true'
64
+ enable-size-deltas-report : ' true'
70
65
verbose : ' false'
71
66
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'
67
+ - name : Save memory usage change report as artifact
68
+ if : github.event_name == 'pull_request'
69
+ uses : actions/upload-artifact@v1
70
+ with :
71
+ name : ' size-deltas-reports'
72
+ path : ' size-deltas-reports'
0 commit comments