Skip to content

Commit 975c69d

Browse files
committed
ci: add compile examples job
1 parent 82d6004 commit 975c69d

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Compile Examples
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/compile-examples.yml"
7+
- "library.properties"
8+
- "examples/**"
9+
- "src/**"
10+
push:
11+
paths:
12+
- ".github/workflows/compile-examples.yml"
13+
- "library.properties"
14+
- "examples/**"
15+
- "src/**"
16+
schedule:
17+
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
18+
- cron: "0 8 * * TUE"
19+
workflow_dispatch:
20+
repository_dispatch:
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
26+
env:
27+
SKETCHES_REPORTS_PATH: sketches-reports
28+
29+
strategy:
30+
fail-fast: false
31+
32+
matrix:
33+
board:
34+
- fqbn: arduino:renesas_uno:unor4wifi
35+
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
40+
- name: Compile examples
41+
uses: arduino/compile-sketches@main
42+
with:
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
fqbn: ${{ matrix.board.fqbn }}
45+
libraries: |
46+
# Install the library from the local path.
47+
- source-path: ./
48+
# Install library dependencies.
49+
- name: STM32duino VL53L4CD
50+
- name: Arduino_LSM6DSOX
51+
- name: Arduino_LPS22HB
52+
- name: Arduino_HS300x
53+
- name: Button2
54+
- name: ArduinoGraphics
55+
56+
enable-deltas-report: true
57+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
58+
59+
- name: Save memory usage change report as artifact
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: ${{ env.SKETCHES_REPORTS_PATH }}
63+
path: ${{ env.SKETCHES_REPORTS_PATH }}

0 commit comments

Comments
 (0)