Skip to content

Commit 78f2529

Browse files
committed
Merge branch 'master' of github.com:arduino/ArduinoCore-mbed
2 parents 900f717 + 81d6c1e commit 78f2529

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Compile Examples
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/compile-examples.yml"
7+
- "cores/**"
8+
- "libraries/**"
9+
- "variants/**"
10+
- "boards.txt"
11+
- "platform.txt"
12+
push:
13+
paths:
14+
- ".github/workflows/compile-examples.yml"
15+
- "cores/**"
16+
- "libraries/**"
17+
- "variants/**"
18+
- "boards.txt"
19+
- "platform.txt"
20+
21+
jobs:
22+
compile-examples:
23+
runs-on: ubuntu-latest
24+
25+
env:
26+
# sketch paths to compile (recursive) compatible with all boards
27+
UNIVERSAL_SKETCH_PATHS: '"libraries/Scheduler"'
28+
29+
strategy:
30+
fail-fast: false
31+
32+
matrix:
33+
board:
34+
- fqbn: arduino-beta:mbed:nano33ble
35+
- fqbn: arduino-beta:mbed:envie_m4
36+
- fqbn: arduino-beta:mbed:envie_m7
37+
38+
# compile only the examples compatible with each board
39+
include:
40+
- board:
41+
fqbn: arduino-beta:mbed:nano33ble
42+
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
43+
- board:
44+
fqbn: arduino-beta:mbed:envie_m4
45+
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" '
46+
- board:
47+
fqbn: arduino-beta:mbed:envie_m7
48+
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_Audio" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" "libraries/ThreadDebug" "libraries/USBHOST"'
49+
50+
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@v2
53+
54+
# 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
55+
- name: Checkout ArduinoCore-API
56+
uses: actions/checkout@v2
57+
with:
58+
repository: arduino/ArduinoCore-API
59+
ref: namespace_arduino
60+
path: ArduinoCore-API
61+
62+
- name: Remove old symlink to api
63+
run: rm "$GITHUB_WORKSPACE/cores/arduino/api"
64+
65+
- name: Install ArduinoCore-API
66+
run: mv "$GITHUB_WORKSPACE/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
67+
68+
- name: Compile examples
69+
uses: arduino/actions/libraries/compile-examples@master
70+
with:
71+
fqbn: ${{ matrix.board.fqbn }}
72+
platforms: |
73+
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
74+
- name: "arduino-beta:mbed"
75+
# Overwrite the Board Manager installation with the local platform
76+
- source-path: "./"
77+
name: "arduino-beta:mbed"
78+
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.additional-sketch-paths }}"
79+
verbose: 'false'
80+
enable-size-deltas-report: true
81+
82+
- name: Save memory usage change report as artifact
83+
if: github.event_name == 'pull_request'
84+
uses: actions/upload-artifact@v1
85+
with:
86+
name: size-deltas-reports
87+
path: size-deltas-reports
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on:
2+
schedule:
3+
- cron: '*/5 * * * *'
4+
5+
jobs:
6+
report:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Comment size deltas reports to PRs
11+
uses: arduino/actions/libraries/report-size-deltas@master

0 commit comments

Comments
 (0)