forked from arduino/ArduinoCore-mbed
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (72 loc) · 2.6 KB
/
compile-examples.yml
File metadata and controls
81 lines (72 loc) · 2.6 KB
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
name: Compile Examples
on:
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "cores/**"
- "libraries/**"
- "variants/**"
- "boards.txt"
- "platform.txt"
push:
paths:
- ".github/workflows/compile-examples.yml"
- "cores/**"
- "libraries/**"
- "variants/**"
- "boards.txt"
- "platform.txt"
jobs:
compile-examples:
runs-on: ubuntu-latest
env:
# sketch paths to compile (recursive) compatible with all boards
UNIVERSAL_SKETCH_PATHS: |
- libraries/Scheduler
SKETCHES_REPORTS_PATH: sketches-reports
strategy:
fail-fast: false
matrix:
board:
- fqbn: electroniccats:mbed:bastble
- fqbn: electroniccats:mbed:bast_frontier
- fqbn: electroniccats:mbed:rak_wistrio5010
- fqbn: electroniccats:mbed:wisblock_rak4631
# compile only the examples compatible with each board
include:
- board:
fqbn: electroniccats:mbed:bastble
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
- board:
fqbn: electroniccats:mbed:bast_frontier
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
- board:
fqbn: electroniccats:mbed:rak_wistrio5010
additional-sketch-paths: '"libraries/ThreadDebug"'
- board:
fqbn: electroniccats:mbed:wisblock_rak4631
additional-sketch-paths: '"libraries/ThreadDebug"'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Compile examples
uses: arduino/compile-sketches@main
with:
fqbn: ${{ matrix.board.fqbn }}
platforms: |
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
- source-url: "https://electroniccats.github.io/Arduino_Boards_Index/package_electroniccats_index.json"
name: "electroniccats:mbed"
# Overwrite the Board Manager installation with the local platform
- source-path: "./"
name: "electroniccats:mbed"
sketch-paths: "${{ matrix.additional-sketch-paths }}"
verbose: 'false'
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
- name: Save memory usage change report as artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v2
with:
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: ${{ env.SKETCHES_REPORTS_PATH }}