Skip to content

Commit 339d10f

Browse files
authored
Merge pull request #238 from per1234/update-ci
Modernize CI system
2 parents 76e8e84 + d92324e commit 339d10f

File tree

5 files changed

+48
-35
lines changed

5 files changed

+48
-35
lines changed

.codespellrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See: https://github.com/codespell-project/codespell#using-a-config-file
2+
[codespell]
3+
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
4+
ignore-words-list = alocation,wan
5+
check-filenames =
6+
check-hidden =
7+
skip = ./.git,./extras/test/external,./src/cbor/lib/tinycbor

.github/workflows/compile-examples.yml

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,35 @@ jobs:
3737
fail-fast: false
3838

3939
matrix:
40-
board: [
41-
{"fqbn": "arduino:samd:mkr1000", "type": "mkr1000"},
42-
{"fqbn": "arduino:samd:mkrwifi1010", "type": "nina"},
43-
{"fqbn": "arduino:samd:nano_33_iot", "type": "nina"},
44-
{"fqbn": "arduino:megaavr:uno2018", "type": "megaavr"},
45-
{"fqbn": "arduino:samd:mkrwan1300", "type": "wan"},
46-
{"fqbn": "arduino:samd:mkrgsm1400", "type": "gsm"},
47-
{"fqbn": "arduino:samd:mkrnb1500", "type": "nb"},
48-
{"fqbn": "arduino:mbed:envie_m4", "type": "mbed"},
49-
{"fqbn": "arduino:mbed:envie_m7", "type": "mbed"},
50-
{"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"},
51-
{"fqbn": "esp32:esp32:esp32", "type": "esp32"}
52-
]
40+
board:
41+
- fqbn: arduino:samd:mkr1000
42+
type: mkr1000
43+
- fqbn: arduino:samd:mkrwifi1010
44+
type: nina
45+
- fqbn: arduino:samd:nano_33_iot
46+
type: nina
47+
- fqbn: arduino:megaavr:uno2018
48+
type: megaavr
49+
- fqbn: arduino:samd:mkrwan1300
50+
type: wan
51+
- fqbn: arduino:samd:mkrgsm1400
52+
type: gsm
53+
- fqbn: arduino:samd:mkrnb1500
54+
type: nb
55+
- fqbn: arduino:mbed:envie_m4
56+
type: mbed
57+
- fqbn: arduino:mbed:envie_m7
58+
type: mbed
59+
- fqbn: esp8266:esp8266:huzzah
60+
type: esp8266
61+
- fqbn: esp32:esp32:esp32
62+
type: esp32
5363

5464
# make board type-specific customizations to the matrix jobs
5565
include:
5666
# MKR 1000
5767
- board:
58-
type: "mkr1000"
68+
type: mkr1000
5969
platforms: |
6070
# Install Arduino SAMD Boards via Boards Manager for the toolchain
6171
- name: arduino:samd
@@ -68,7 +78,7 @@ jobs:
6878
- examples/utility/Provisioning
6979
# MKR WiFi 1010, Nano 33 IoT
7080
- board:
71-
type: "nina"
81+
type: nina
7282
platforms: |
7383
# Install Arduino SAMD Boards via Boards Manager for the toolchain
7484
- name: arduino:samd
@@ -84,7 +94,7 @@ jobs:
8494
- examples/utility/SelfProvisioning
8595
# Uno WiFi Rev2
8696
- board:
87-
type: "megaavr"
97+
type: megaavr
8898
platforms: |
8999
- name: arduino:megaavr
90100
libraries: |
@@ -98,7 +108,7 @@ jobs:
98108
- examples/utility/SelfProvisioning
99109
# LoRaWAN boards
100110
- board:
101-
type: "wan"
111+
type: wan
102112
platforms: |
103113
- name: arduino:samd
104114
libraries: |
@@ -109,7 +119,7 @@ jobs:
109119
sketch-paths:
110120
# GSM boards
111121
- board:
112-
type: "gsm"
122+
type: gsm
113123
platforms: |
114124
- name: arduino:samd
115125
libraries: |
@@ -121,7 +131,7 @@ jobs:
121131
- examples/utility/Provisioning
122132
# NB boards
123133
- board:
124-
type: "nb"
134+
type: nb
125135
platforms: |
126136
- name: arduino:samd
127137
libraries: |
@@ -133,7 +143,7 @@ jobs:
133143
- examples/utility/Provisioning
134144
# Portenta
135145
- board:
136-
type: "mbed"
146+
type: mbed
137147
platforms: |
138148
# Install Arduino mbed-Enabled Boards via Boards Manager for the toolchain
139149
- name: arduino:mbed
@@ -147,7 +157,7 @@ jobs:
147157
- examples/utility/Provisioning
148158
# ESP8266 boards
149159
- board:
150-
type: "esp8266"
160+
type: esp8266
151161
platforms: |
152162
# Install ESP8266 platform via Boards Manager
153163
- name: esp8266:esp8266
@@ -157,7 +167,7 @@ jobs:
157167
sketch-paths:
158168
# ESP32 boards
159169
- board:
160-
type: "esp32"
170+
type: esp32
161171
platforms: |
162172
# Install ESP32 platform via Boards Manager
163173
- name: esp32:esp32
@@ -176,7 +186,7 @@ jobs:
176186
uses: actions/checkout@v2
177187
with:
178188
repository: arduino/ArduinoCore-mbed
179-
# the arduino/actions/libraries/compile-examples action will install the platform from this path
189+
# the arduino/compile-sketches action will install the platform from this path
180190
path: ${{ env.ARDUINOCORE_MBED_STAGING_PATH }}
181191

182192
- name: Checkout ArduinoCore-API
@@ -185,7 +195,6 @@ jobs:
185195
uses: actions/checkout@v2
186196
with:
187197
repository: arduino/ArduinoCore-API
188-
# as specified at https://github.com/arduino/ArduinoCore-mbed/blob/master/README.md#installation
189198
path: ${{ env.ARDUINOCORE_API_STAGING_PATH }}
190199

191200
- name: Install ArduinoCore-API
@@ -199,7 +208,7 @@ jobs:
199208
run: pip3 install pyserial
200209

201210
- name: Compile examples
202-
uses: arduino/compile-sketches@main
211+
uses: arduino/compile-sketches@v1
203212
with:
204213
github-token: ${{ secrets.GITHUB_TOKEN }}
205214
platforms: ${{ matrix.platforms }}
@@ -210,7 +219,7 @@ jobs:
210219
sketch-paths: |
211220
${{ env.UNIVERSAL_SKETCH_PATHS }}
212221
${{ matrix.sketch-paths }}
213-
enable-deltas-report: 'true'
222+
enable-deltas-report: "true"
214223
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
215224

216225
- name: Write data to size trends report spreadsheet
@@ -224,7 +233,7 @@ jobs:
224233

225234
- name: Save memory usage change report as artifact
226235
if: github.event_name == 'pull_request'
227-
uses: actions/upload-artifact@v1
236+
uses: actions/upload-artifact@v2
228237
with:
229238
name: ${{ env.SKETCHES_REPORTS_PATH }}
230239
path: ${{ env.SKETCHES_REPORTS_PATH }}

.github/workflows/report-size-deltas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Comment size deltas reports to PRs
11-
uses: arduino/report-size-deltas@main
11+
uses: arduino/report-size-deltas@v1
1212
with:
1313
# The name of the workflow artifact created by the "Compile Examples" workflow
1414
sketches-reports-source: sketches-reports

.github/workflows/spell-check.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Spell Check
22

3-
on: [push, pull_request]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
68
build:
@@ -11,7 +13,4 @@ jobs:
1113
uses: actions/checkout@v2
1214

1315
- name: Spell check
14-
uses: arduino/actions/libraries/spell-check@master
15-
with:
16-
ignore-words-list: extras/codespell-ignore-words-list.txt
17-
skip-paths: ./extras/test/external,./src/cbor/lib/tinycbor
16+
uses: codespell-project/actions-codespell@master

extras/codespell-ignore-words-list.txt

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

0 commit comments

Comments
 (0)