Skip to content

Modernize CI system #238

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 4 commits into from
Apr 9, 2021
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
7 changes: 7 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = alocation,wan
check-filenames =
check-hidden =
skip = ./.git,./extras/test/external,./src/cbor/lib/tinycbor
63 changes: 36 additions & 27 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,35 @@ jobs:
fail-fast: false

matrix:
board: [
{"fqbn": "arduino:samd:mkr1000", "type": "mkr1000"},
{"fqbn": "arduino:samd:mkrwifi1010", "type": "nina"},
{"fqbn": "arduino:samd:nano_33_iot", "type": "nina"},
{"fqbn": "arduino:megaavr:uno2018", "type": "megaavr"},
{"fqbn": "arduino:samd:mkrwan1300", "type": "wan"},
{"fqbn": "arduino:samd:mkrgsm1400", "type": "gsm"},
{"fqbn": "arduino:samd:mkrnb1500", "type": "nb"},
{"fqbn": "arduino:mbed:envie_m4", "type": "mbed"},
{"fqbn": "arduino:mbed:envie_m7", "type": "mbed"},
{"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"},
{"fqbn": "esp32:esp32:esp32", "type": "esp32"}
]
board:
- fqbn: arduino:samd:mkr1000
type: mkr1000
- fqbn: arduino:samd:mkrwifi1010
type: nina
- fqbn: arduino:samd:nano_33_iot
type: nina
- fqbn: arduino:megaavr:uno2018
type: megaavr
- fqbn: arduino:samd:mkrwan1300
type: wan
- fqbn: arduino:samd:mkrgsm1400
type: gsm
- fqbn: arduino:samd:mkrnb1500
type: nb
- fqbn: arduino:mbed:envie_m4
type: mbed
- fqbn: arduino:mbed:envie_m7
type: mbed
- fqbn: esp8266:esp8266:huzzah
type: esp8266
- fqbn: esp32:esp32:esp32
type: esp32

# make board type-specific customizations to the matrix jobs
include:
# MKR 1000
- board:
type: "mkr1000"
type: mkr1000
platforms: |
# Install Arduino SAMD Boards via Boards Manager for the toolchain
- name: arduino:samd
Expand All @@ -68,7 +78,7 @@ jobs:
- examples/utility/Provisioning
# MKR WiFi 1010, Nano 33 IoT
- board:
type: "nina"
type: nina
platforms: |
# Install Arduino SAMD Boards via Boards Manager for the toolchain
- name: arduino:samd
Expand All @@ -84,7 +94,7 @@ jobs:
- examples/utility/SelfProvisioning
# Uno WiFi Rev2
- board:
type: "megaavr"
type: megaavr
platforms: |
- name: arduino:megaavr
libraries: |
Expand All @@ -98,7 +108,7 @@ jobs:
- examples/utility/SelfProvisioning
# LoRaWAN boards
- board:
type: "wan"
type: wan
platforms: |
- name: arduino:samd
libraries: |
Expand All @@ -108,7 +118,7 @@ jobs:
sketch-paths:
# GSM boards
- board:
type: "gsm"
type: gsm
platforms: |
- name: arduino:samd
libraries: |
Expand All @@ -120,7 +130,7 @@ jobs:
- examples/utility/Provisioning
# NB boards
- board:
type: "nb"
type: nb
platforms: |
- name: arduino:samd
libraries: |
Expand All @@ -132,7 +142,7 @@ jobs:
- examples/utility/Provisioning
# Portenta
- board:
type: "mbed"
type: mbed
platforms: |
# Install Arduino mbed-Enabled Boards via Boards Manager for the toolchain
- name: arduino:mbed
Expand All @@ -146,7 +156,7 @@ jobs:
- examples/utility/Provisioning
# ESP8266 boards
- board:
type: "esp8266"
type: esp8266
platforms: |
# Install ESP8266 platform via Boards Manager
- name: esp8266:esp8266
Expand All @@ -156,7 +166,7 @@ jobs:
sketch-paths:
# ESP32 boards
- board:
type: "esp32"
type: esp32
platforms: |
# Install ESP32 platform via Boards Manager
- name: esp32:esp32
Expand All @@ -175,7 +185,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: arduino/ArduinoCore-mbed
# the arduino/actions/libraries/compile-examples action will install the platform from this path
# the arduino/compile-sketches action will install the platform from this path
path: ${{ env.ARDUINOCORE_MBED_STAGING_PATH }}

- name: Checkout ArduinoCore-API
Expand All @@ -184,7 +194,6 @@ jobs:
uses: actions/checkout@v2
with:
repository: arduino/ArduinoCore-API
# as specified at https://github.com/arduino/ArduinoCore-mbed/blob/master/README.md#installation
path: ${{ env.ARDUINOCORE_API_STAGING_PATH }}

- name: Install ArduinoCore-API
Expand All @@ -198,7 +207,7 @@ jobs:
run: pip3 install pyserial

- name: Compile examples
uses: arduino/compile-sketches@main
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
platforms: ${{ matrix.platforms }}
Expand All @@ -209,7 +218,7 @@ jobs:
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
${{ matrix.sketch-paths }}
enable-deltas-report: 'true'
enable-deltas-report: "true"
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

- name: Write data to size trends report spreadsheet
Expand All @@ -223,7 +232,7 @@ jobs:

- name: Save memory usage change report as artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: ${{ env.SKETCHES_REPORTS_PATH }}
path: ${{ env.SKETCHES_REPORTS_PATH }}
2 changes: 1 addition & 1 deletion .github/workflows/report-size-deltas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

steps:
- name: Comment size deltas reports to PRs
uses: arduino/report-size-deltas@main
uses: arduino/report-size-deltas@v1
with:
# The name of the workflow artifact created by the "Compile Examples" workflow
sketches-reports-source: sketches-reports
9 changes: 4 additions & 5 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Spell Check

on: [push, pull_request]
on:
- push
- pull_request

jobs:
build:
Expand All @@ -11,7 +13,4 @@ jobs:
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/test/external,./src/cbor/lib/tinycbor
uses: codespell-project/actions-codespell@master
2 changes: 0 additions & 2 deletions extras/codespell-ignore-words-list.txt

This file was deleted.