Skip to content

Commit d07192a

Browse files
committedApr 12, 2021
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 0d23503 commit d07192a

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
 

Diff for: ‎.github/workflows/compile-examples.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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:mkr1000
32+
platforms: |
33+
- name: arduino:samd
34+
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v2
38+
39+
- name: Compile examples
40+
uses: arduino/compile-sketches@v1
41+
with:
42+
github-token: ${{ secrets.GITHUB_TOKEN }}
43+
fqbn: ${{ matrix.board.fqbn }}
44+
platforms: ${{ matrix.board.platforms }}
45+
libraries: |
46+
# Install the library from the local path.
47+
- source-path: ./
48+
- name: WiFi101
49+
sketch-paths: |
50+
- examples

Diff for: ‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ArduinoHttpClient
22

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

67
ArduinoHttpClient is a library to make it easier to interact with web servers from Arduino.

0 commit comments

Comments
 (0)
Please sign in to comment.