Skip to content

Use GitHub actions for continuous integration #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Compile Examples

on:
pull_request:
paths:
- .github/workflows/compile-examples.yml
- examples/**
- src/**
push:
paths:
- .github/workflows/compile-examples.yml
- examples/**
- src/**

jobs:
build:
runs-on: ubuntu-latest

env:
# libraries to install for all boards
UNIVERSAL_LIBRARIES: |
# install the ArduinoBearSSL library from the local path
- source-path: ./
- name: ArduinoECCX08
# sketch paths to compile (recursive) for all boards
UNIVERSAL_SKETCH_PATHS: '"examples/SHA1" "examples/SHA256"'

strategy:
fail-fast: false

matrix:
board:
- fqbn: arduino:samd:mkr1000
type: wifi101
- fqbn: arduino:samd:mkrgsm1400
type: gsm
- fqbn: arduino:megaavr:uno2018
type: megaavr

# make board type-specific customizations to the matrix jobs
include:
# WiFi101-compatible boards
- board:
type: wifi101
libraries: |
- name: WiFi101
sketch-paths: '"examples/WiFiSSLClient"'
# GSM boards
- board:
type: gsm
libraries: |
- name: MKRGSM
sketch-paths: '"examples/MKRGSMSSLClient"'

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

- name: Compile examples
uses: per1234/actions/libraries/compile-examples@beaac5ae4bb7ab294f1305e436172fde4c281fc8
with:
fqbn: ${{ matrix.board.fqbn }}
libraries: |
${{ env.UNIVERSAL_LIBRARIES }}
${{ matrix.libraries }}
sketch-paths: ${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.sketch-paths }}
size-report-sketch: SHA256
enable-size-deltas-report: true
verbose: true

- name: Save sketches report as artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v2
with:
name: size-deltas-reports
path: size-deltas-reports
14 changes: 14 additions & 0 deletions .github/workflows/report-size-deltas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Report Size Deltas

on:
schedule:
# schedule action for every five minutes (ends up being a little longer in practice)
- cron: "*/5 * * * *"

jobs:
report:
runs-on: ubuntu-latest

steps:
- name: Comment size deltas reports to PRs
uses: arduino/actions/libraries/report-size-deltas@master
17 changes: 17 additions & 0 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Spell Check

on: [push, pull_request]

jobs:
spellcheck:
runs-on: ubuntu-latest

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

- name: Spell check
uses: arduino/actions/libraries/spell-check@master
with:
ignore-words-list: extras/codespell-ignore-words-list.txt
skip-paths: ./extras/TrustAnchors,./src/bearssl
Empty file.