Skip to content

Commit

Permalink
Add "smoke test" examples compilation CI workflow
Browse files Browse the repository at this point in the history
On every push or pull request that affects library source or example files, compile all example sketches for the
specified boards.
  • Loading branch information
per1234 committed Jan 13, 2021
1 parent 395d147 commit 83ccb32
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 51 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Compile Examples

on:
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms)
schedule:
# run every Saturday at 3 AM UTC
- cron: "0 3 * * 6"
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
workflow_dispatch:
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch
repository_dispatch:

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
board:
- fqbn: arduino:samd:mkrwifi1010
- fqbn: arduino:samd:mkrvidor4000
- fqbn: arduino:megaavr:uno2018:mode=on

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Compile examples
uses: arduino/compile-sketches@main
with:
fqbn: ${{ matrix.board.fqbn }}
libraries: |
# Install the library from the local path.
- source-path: ./
# Install library dependencies.
- name: VidorPeripherals
sketch-paths: |
- ./examples/
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

10 changes: 7 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
= WiFiNINA Library for Arduino =
// Define the repository information in these attributes
:repository-owner: arduino-libraries
:repository-name: WiFiNINA

= {repository-name} library for Arduino =

image:https://travis-ci.org/arduino-libraries/WiFiNINA.svg?branch=master["Build Status", link="https://travis-ci.org/arduino-libraries/WiFiNINA"]
image:https://github.com/{repository-owner}/{repository-name}/workflows/Compile%20Examples/badge.svg["Compile Examples Status", link="https://github.com/{repository-owner}/{repository-name}/actions?workflow=Compile+Examples"]
image:https://github.com/{repository-owner}/{repository-name}/workflows/Spell%20Check/badge.svg["Spell Check Status", link="https://github.com/{repository-owner}/{repository-name}/actions?workflow=Spell+Check"]

Enables network connection (local and Internet) with the Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000 and Arduino UNO WiFi Rev.2.

With this library you can instantiate Servers, Clients and send/receive UDP packets through WiFi. The board can connect either to open or encrypted networks (WEP, WPA). The IP address can be assigned statically or through a DHCP. The library can also manage DNS.

For more information about this library please visit us at
http://www.arduino.cc/en/Reference/WiFiNINA
https://www.arduino.cc/en/Reference/{repository-name}

== License ==

Expand Down

0 comments on commit 83ccb32

Please sign in to comment.