Skip to content

Commit 48103e7

Browse files
committed
2 parents e912adf + c1c4351 commit 48103e7

7 files changed

+120
-5
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 = trun
5+
check-filenames =
6+
check-hidden =
7+
skip = ./.git

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#about-the-dependabotyml-file
2+
version: 2
3+
4+
updates:
5+
# Configure check for outdated GitHub Actions actions in workflows.
6+
# See: https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
7+
- package-ecosystem: github-actions
8+
directory: / # Check the repository's workflows under /.github/workflows/
9+
schedule:
10+
interval: daily

.github/workflows/check-arduino.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check Arduino
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
# Run every Tuesday at 8 AM UTC to catch breakage caused by new rules added to Arduino Lint.
9+
- cron: "0 8 * * TUE"
10+
workflow_dispatch:
11+
repository_dispatch:
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
- name: Arduino Lint
22+
uses: arduino/arduino-lint-action@v1
23+
with:
24+
compliance: specification
25+
library-manager: update
26+
# Always use this setting for official repositories. Remove for 3rd party projects.
27+
official: true
28+
project-type: library

.github/workflows/main.yml renamed to .github/workflows/compile-examples.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ on:
44
pull_request:
55
paths:
66
- ".github/workflows/compile-examples.yml"
7+
- "library.properties"
78
- "examples/**"
89

910
push:
1011
paths:
1112
- ".github/workflows/compile-examples.yml"
13+
- "library.properties"
1214
- "examples/**"
1315

1416
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms)
@@ -22,6 +24,7 @@ on:
2224

2325
jobs:
2426
build:
27+
name: ${{ matrix.board.fqbn }}
2528
runs-on: ubuntu-latest
2629

2730
env:
@@ -32,14 +35,25 @@ jobs:
3235

3336
matrix:
3437
board:
35-
- fqbn: arduino:mbed:envie_m7
38+
- fqbn: arduino:mbed_portenta:envie_m7
39+
sketch-paths: |
40+
- examples/BLE Connectivity on Portenta H7/PortentaBLE
41+
- examples/Creating a Flash-Optimised Key-Value Store/FlashKeyValueStore
42+
- examples/Dual Core Processing/BlinkRedLed
43+
- examples/Dual Core Processing/BlinkRedLed_M7
44+
- examples/Portenta H7 as a USB Host/LEDKeyboardController
45+
- examples/Portenta H7 as a WiFi Access Point/SimpleWebServer
46+
- examples/Setting Up Portenta H7 For Arduino/Blink
47+
- fqbn: arduino:mbed_portenta:envie_m4
48+
sketch-paths: |
49+
- examples/Dual Core Processing/BlinkGreenLed_M4
3650
3751
steps:
3852
- name: Checkout
3953
uses: actions/checkout@v2
4054

4155
- name: Compile examples
42-
uses: arduino/compile-sketches@main
56+
uses: arduino/compile-sketches@v1
4357
with:
4458
github-token: ${{ secrets.GITHUB_TOKEN }}
4559
fqbn: ${{ matrix.board.fqbn }}
@@ -50,13 +64,16 @@ jobs:
5064
- name: ArduinoBLE
5165
5266
sketch-paths: |
53-
- './examples/'
54-
67+
# Sketches to compile for all boards
68+
- examples/Dual Core Processing/BlinkBothCores
69+
# Board-specific sketches
70+
${{ matrix.board.sketch-paths }}
5571
enable-deltas-report: true
5672
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
5773

5874
- name: Save memory usage change report as artifact
5975
uses: actions/upload-artifact@v2
6076
with:
77+
if-no-files-found: error
6178
name: ${{ env.SKETCHES_REPORTS_PATH }}
6279
path: ${{ env.SKETCHES_REPORTS_PATH }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Report Size Deltas
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
paths:
7+
- ".github/workflows/report-size-deltas.yml"
8+
schedule:
9+
# Run at the minimum interval allowed by GitHub Actions.
10+
# Note: GitHub Actions periodically has outages which result in workflow failures.
11+
# In this event, the workflows will start passing again once the service recovers.
12+
- cron: "*/5 * * * *"
13+
workflow_dispatch:
14+
repository_dispatch:
15+
16+
jobs:
17+
report:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Comment size deltas reports to PRs
21+
uses: arduino/report-size-deltas@v1
22+
with:
23+
# The name of the workflow artifact created by the sketch compilation workflow
24+
sketches-reports-source: sketches-reports

.github/workflows/spell-check.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Spell Check
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
9+
- cron: "0 8 * * TUE"
10+
workflow_dispatch:
11+
repository_dispatch:
12+
13+
jobs:
14+
spellcheck:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
- name: Spell check
22+
uses: codespell-project/actions-codespell@master

README.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
= Arduino_Pro_Tutorials Library for Arduino =
1+
:repository-owner: arduino-libraries
2+
:repository-name: Arduino_Pro_Tutorials
3+
4+
= {repository-name} Library for Arduino =
5+
6+
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/check-arduino.yml/badge.svg["Check Arduino status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/check-arduino.yml"]
7+
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/compile-examples.yml/badge.svg["Compile Examples status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/compile-examples.yml"]
8+
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml/badge.svg["Spell Check status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml"]
29

310
The complete Arduino sketches from the Pro Tutorials found on the https://www.arduino.cc/pro/tutorials/portenta-h7[Arduino Pro website].
411

0 commit comments

Comments
 (0)