Skip to content

Commit 99d7761

Browse files
committed
Port "smoke test" CI compilation to GitHub Actions
On every push and pull request, compile the example sketches of the library for the given list of Arduino boards.
1 parent 0cbee7f commit 99d7761

File tree

3 files changed

+89
-56
lines changed

3 files changed

+89
-56
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Compile Examples
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/compile-examples.yml"
7+
- "examples/**"
8+
- "src/**"
9+
push:
10+
paths:
11+
- ".github/workflows/compile-examples.yml"
12+
- "examples/**"
13+
- "src/**"
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
env:
20+
# sketch paths to compile (recursive) for all boards
21+
UNIVERSAL_SKETCH_PATHS: |
22+
- examples/AP_SimpleWebServer
23+
- examples/CheckWifi101FirmwareVersion
24+
- examples/ConnectNoEncryption
25+
- examples/ConnectWithWEP
26+
- examples/ConnectWithWPA
27+
- examples/MDNS_WiFiWebServer
28+
- examples/Provisioning_WiFiWebServer
29+
- examples/ScanNetworks
30+
- examples/ScanNetworksAdvanced
31+
- examples/SimpleWebServerWiFi
32+
- examples/WiFiChatServer
33+
- examples/WiFiPing
34+
- examples/WiFiSSLClient
35+
- examples/WiFiUdpNtpClient
36+
- examples/WiFiUdpSendReceiveString
37+
- examples/WiFiWebClient
38+
- examples/WiFiWebClientRepeating
39+
- examples/WiFiWebServer
40+
41+
strategy:
42+
fail-fast: false
43+
44+
matrix:
45+
board:
46+
- fqbn: arduino:avr:uno
47+
firmwareUpdaterSupport: false
48+
- fqbn: arduino:avr:mega
49+
firmwareUpdaterSupport: false
50+
- fqbn: arduino:sam:arduino_due_x_dbg
51+
firmwareUpdaterSupport: true
52+
- fqbn: arduino:samd:arduino_zero_edbg
53+
firmwareUpdaterSupport: true
54+
- fqbn: arduino:samd:mkr1000
55+
firmwareUpdaterSupport: true
56+
- fqbn: Intel:arc32:arduino_101
57+
firmwareUpdaterSupport: true
58+
59+
# make board type-specific customizations to the matrix jobs
60+
include:
61+
- board:
62+
firmwareUpdaterSupport: true
63+
firmwareUpdater-sketch-paths: |
64+
- examples/FirmwareUpdater
65+
- board:
66+
firmwareUpdaterSupport: false
67+
firmwareUpdater-sketch-paths: ""
68+
69+
steps:
70+
- name: Checkout
71+
uses: actions/checkout@v2
72+
73+
- name: Compile examples
74+
uses: arduino/compile-sketches@main
75+
with:
76+
fqbn: ${{ matrix.board.fqbn }}
77+
libraries: |
78+
# Install the WiFi101 library from the local path
79+
- source-path: ./
80+
sketch-paths: |
81+
${{ env.UNIVERSAL_SKETCH_PATHS }}
82+
${{ matrix.firmwareUpdater-sketch-paths }}

.travis.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

README.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
= WiFi library for the Arduino WiFi Shield 101 and MKR1000 board =
1+
// Define the repository information in these attributes
2+
:repository-owner: arduino-libraries
3+
:repository-name: WiFi101
24

3-
image:https://travis-ci.org/arduino-libraries/WiFi101.svg?branch=master["Build Status", link="https://travis-ci.org/arduino-libraries/WiFi101"]
5+
= {repository-name} library for for the Arduino WiFi Shield 101 and MKR1000 board =
6+
7+
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"]
48

59
This library implements a network driver for devices based
610
on the ATMEL WINC1500 WiFi module.
711

812
For more information about this library please visit us at
9-
https://www.arduino.cc/en/Reference/WiFi101
13+
https://www.arduino.cc/en/Reference/{repository-name}
1014

1115
== License ==
1216

0 commit comments

Comments
 (0)