Skip to content

Commit 2bf6593

Browse files
committed
Add "smoke test" examples compilation CI workflow
On every push or pull request that affects library source or example files, and periodically, compile all example sketches for the specified boards.
1 parent 908ed73 commit 2bf6593

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Compile Examples
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
paths:
7+
- ".github/workflows/compile-examples.yml"
8+
- "examples/**"
9+
- "src/**"
10+
pull_request:
11+
paths:
12+
- ".github/workflows/compile-examples.yml"
13+
- "examples/**"
14+
- "src/**"
15+
schedule:
16+
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
17+
- cron: "0 8 * * TUE"
18+
workflow_dispatch:
19+
repository_dispatch:
20+
21+
jobs:
22+
build:
23+
name: ${{ matrix.board.fqbn }}
24+
runs-on: ubuntu-latest
25+
26+
strategy:
27+
fail-fast: false
28+
29+
matrix:
30+
board:
31+
- fqbn: arduino:samd:arduino_zero_edbg
32+
platforms: |
33+
- name: arduino:samd
34+
- fqbn: arduino:samd:mkrzero
35+
platforms: |
36+
- name: arduino:samd
37+
- fqbn: arduino:samd:mkr1000
38+
platforms: |
39+
- name: arduino:samd
40+
- fqbn: arduino:samd:mkrwifi1010
41+
platforms: |
42+
- name: arduino:samd
43+
- fqbn: arduino:samd:mkrfox1200
44+
platforms: |
45+
- name: arduino:samd
46+
- fqbn: arduino:samd:mkrwan1300
47+
platforms: |
48+
- name: arduino:samd
49+
- fqbn: arduino:samd:mkrwan1310
50+
platforms: |
51+
- name: arduino:samd
52+
- fqbn: arduino:samd:mkrgsm1400
53+
platforms: |
54+
- name: arduino:samd
55+
- fqbn: arduino:samd:mkrnb1500
56+
platforms: |
57+
- name: arduino:samd
58+
- fqbn: arduino:samd:mkrvidor4000
59+
platforms: |
60+
- name: arduino:samd
61+
- fqbn: arduino:samd:nano_33_iot
62+
platforms: |
63+
- name: arduino:samd
64+
65+
steps:
66+
- name: Checkout repository
67+
uses: actions/checkout@v2
68+
69+
- name: Compile examples
70+
uses: arduino/compile-sketches@v1
71+
with:
72+
github-token: ${{ secrets.GITHUB_TOKEN }}
73+
fqbn: ${{ matrix.board.fqbn }}
74+
platforms: ${{ matrix.board.platforms }}
75+
libraries: |
76+
# Install the library from the local path.
77+
- source-path: ./
78+
# Additional library dependencies can be listed here.
79+
# See: https://github.com/arduino/compile-sketches#libraries
80+
sketch-paths: |
81+
- examples

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# MCHPTouch Library for Arduino
22

33
[![Check Arduino status](https://github.com/arduino-libraries/Arduino_MCHPTouch/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_MCHPTouch/actions/workflows/check-arduino.yml)
4+
[![Compile Examples status](https://github.com/arduino-libraries/Arduino_MCHPTouch/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_MCHPTouch/actions/workflows/compile-examples.yml)
45
[![Spell Check status](https://github.com/arduino-libraries/Arduino_MCHPTouch/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_MCHPTouch/actions/workflows/spell-check.yml)
56

67
This library allows you to read touch sensors values from the [Arduino MKR](https://store.arduino.cc/arduino-mkr-wifi-1010) boards and the [Arduino Nano 33 IoT](https://store.arduino.cc/arduino-nano-33-iot). Touch sensing is a hardware capability of the SAMD21 processor.

0 commit comments

Comments
 (0)