-
-
Notifications
You must be signed in to change notification settings - Fork 39
53 lines (45 loc) · 1.46 KB
/
compile-arduino.yml
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
name: Compile Examples
on:
- push
- pull_request
jobs:
compile:
runs-on: ubuntu-latest
strategy:
matrix:
board:
- fqbn: arduino:avr:uno
artifact-name-suffix: arduino-avr-uno
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compile sketches
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.board.fqbn }}
enable-deltas-report: true
enable-warnings-report: true
sketches-report-path: ${{ vars.SKETCHES_REPORTS_PATH }}
libraries: |
- source-path: ./
- source-url: https://github.com/johnrickman/LiquidCrystal_I2C.git
- source-url: https://github.com/feilipu/Arduino_FreeRTOS_Library.git
- source-url: https://github.com/mprograms/SimpleRotary.git
- name: Upload sketches reports
uses: actions/upload-artifact@v4
with:
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
path: ${{ vars.SKETCHES_REPORTS_PATH }}
report:
needs: compile
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Download sketches reports artifacts
uses: actions/download-artifact@v4
with:
path: ${{ vars.SKETCHES_REPORTS_PATH }}
- name: Report size deltas
uses: arduino/report-size-deltas@v1
with:
sketches-reports-source: ${{ vars.SKETCHES_REPORTS_PATH }}