-
Notifications
You must be signed in to change notification settings - Fork 53
94 lines (79 loc) · 2.35 KB
/
compile-examples.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Compile examples
on:
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
workflow_dispatch:
jobs:
compile-parallel-examples:
runs-on: ubuntu-latest
strategy:
matrix:
fqbn:
- arduino:avr:uno
# - arduino:avr:leonardo
# - arduino:avr:mega:cpu=atmega2560
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.fqbn }}
enable-deltas-report: true
enable-warnings-report: true
cli-compile-flags: |
- --build-property
- build.extra_flags=-DDisplayClass=LiquidCrystal -DLIQUIDMENU_LIBRARY=1
sketch-paths: |
- ./examples/A_hello_menu
- ./examples/B_serial_menu
- ./examples/C_functions_menu
- ./examples/D_buttons_menu
- ./examples/E_progmem_menu
- ./examples/F_focus_menu
- ./examples/G_glyph_menu
- ./examples/H_system_menu
- ./examples/J_scrolling_menu
- ./examples/K_getters_menu
libraries: |
- source-path: ./
- name: LiquidCrystal
- name: Report
uses: actions/upload-artifact@v2
with:
name: sketches-reports
path: sketches-reports
compile-i2c-examples:
runs-on: ubuntu-latest
strategy:
matrix:
fqbn:
- arduino:avr:uno
# - arduino:avr:leonardo
# - arduino:avr:mega:cpu=atmega2560
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.fqbn }}
enable-deltas-report: true
enable-warnings-report: true
cli-compile-flags: |
- --build-property
- build.extra_flags=-DDisplayClass=LiquidCrystal_I2C -DLIQUIDMENU_LIBRARY=2
sketch-paths: |
- ./examples/I_I2C_menu
libraries: |
- source-path: ./
- source-url: https://github.com/johnrickman/LiquidCrystal_I2C.git
- name: LiquidCrystal