mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-06-07 07:42:01 +03:00
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.
This commit is contained in:
parent
0d235030a6
commit
d07192a7f7
50
.github/workflows/compile-examples.yml
vendored
Normal file
50
.github/workflows/compile-examples.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: Compile Examples
|
||||
|
||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- ".github/workflows/compile-examples.yml"
|
||||
- "examples/**"
|
||||
- "src/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- ".github/workflows/compile-examples.yml"
|
||||
- "examples/**"
|
||||
- "src/**"
|
||||
schedule:
|
||||
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
|
||||
- cron: "0 8 * * TUE"
|
||||
workflow_dispatch:
|
||||
repository_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.board.fqbn }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
matrix:
|
||||
board:
|
||||
- fqbn: arduino:samd:mkr1000
|
||||
platforms: |
|
||||
- name: arduino:samd
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Compile examples
|
||||
uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fqbn: ${{ matrix.board.fqbn }}
|
||||
platforms: ${{ matrix.board.platforms }}
|
||||
libraries: |
|
||||
# Install the library from the local path.
|
||||
- source-path: ./
|
||||
- name: WiFi101
|
||||
sketch-paths: |
|
||||
- examples
|
@ -1,6 +1,7 @@
|
||||
# ArduinoHttpClient
|
||||
|
||||
[](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/check-arduino.yml)
|
||||
[](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/compile-examples.yml)
|
||||
[](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/spell-check.yml)
|
||||
|
||||
ArduinoHttpClient is a library to make it easier to interact with web servers from Arduino.
|
||||
|
Loading…
x
Reference in New Issue
Block a user