Skip to content

Commit a4aedab

Browse files
authored
Merge pull request #13 from per1234/ci
Use GitHub Actions for CI
2 parents 40b4574 + 70eb66e commit a4aedab

7 files changed

+121
-5
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
schedule:
15+
# run every Tuesday at 3 AM UTC to catch breakage caused by changes to external dependencies (libraries, platforms)
16+
- cron: "0 3 * * 2"
17+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
18+
workflow_dispatch:
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
24+
env:
25+
SKETCHES_REPORTS_PATH: sketches-reports
26+
27+
strategy:
28+
fail-fast: false
29+
30+
matrix:
31+
fqbn:
32+
- arduino:samd:arduino_zero_edbg
33+
- arduino:samd:mkr1000
34+
- arduino:samd:mkrzero
35+
- arduino:samd:mkrwifi1010
36+
- arduino:samd:nano_33_iot
37+
- arduino:samd:mkrfox1200
38+
- arduino:samd:mkrwan1300
39+
- arduino:samd:mkrwan1310
40+
- arduino:samd:mkrgsm1400
41+
- arduino:samd:mkrnb1500
42+
- arduino:samd:mkrvidor4000
43+
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v2
47+
48+
- name: Compile examples
49+
uses: arduino/compile-sketches@main
50+
with:
51+
fqbn: ${{ matrix.fqbn }}
52+
libraries: |
53+
# Install the AudioZero library from the local path
54+
- source-path: ./
55+
- name: SD
56+
sketch-paths: |
57+
- examples
58+
enable-deltas-report: true
59+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
60+
61+
- name: Save memory usage change report as artifact
62+
uses: actions/upload-artifact@v2
63+
with:
64+
name: ${{ env.SKETCHES_REPORTS_PATH }}
65+
path: ${{ env.SKETCHES_REPORTS_PATH }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Report Size Deltas
2+
3+
on:
4+
schedule:
5+
- cron: "*/5 * * * *"
6+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
7+
workflow_dispatch:
8+
9+
jobs:
10+
report:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Comment size deltas reports to PRs
15+
uses: arduino/report-size-deltas@main
16+
with:
17+
# The name of the workflow artifact created by the "Compile Examples" workflow
18+
sketches-reports-source: sketches-reports

.github/workflows/spell-check.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Spell Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
schedule:
7+
# run every Tuesday at 3 AM UTC
8+
- cron: "0 3 * * 2"
9+
10+
jobs:
11+
spellcheck:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
# See: https://github.com/codespell-project/actions-codespell/blob/master/README.md
19+
- name: Spell check
20+
uses: codespell-project/actions-codespell@master
21+
with:
22+
check_filenames: true
23+
check_hidden: true
24+
# In the event of a false positive, add the word in all lower case to this file:
25+
ignore_words_file: extras/codespell-ignore-words-list.txt
26+
skip: ./.git

README.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
= AudioZero Library for Arduino =
1+
// Define the repository information in these attributes
2+
:repository-owner: arduino-libraries
3+
:repository-name: AudioZero
24

3-
The AudioZero library enables an Arduino SAMD Board (e.g., https://store.arduino.cc/catalogsearch/result/?q=mkr[MKR boards], https://store.arduino.cc/arduino-nano-33-iot[Nano 33 IoT], https://store.arduino.cc/arduino-zero[Zero]) to play back .wav files from a storage device like an SD card to the `DAC0`/`A0` pin.
5+
= {repository-name} library for Arduino =
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"]
8+
image:https://github.com/{repository-owner}/{repository-name}/workflows/Spell%20Check/badge.svg["Spell Check Status", link="https://github.com/{repository-owner}/{repository-name}/actions?workflow=Spell+Check"]
9+
10+
The {repository-name} library enables an Arduino SAMD Board (e.g., https://store.arduino.cc/catalogsearch/result/?q=mkr[MKR boards], https://store.arduino.cc/arduino-nano-33-iot[Nano 33 IoT], https://store.arduino.cc/arduino-zero[Zero]) to play back .wav files from a storage device like an SD card to the `DAC0`/`A0` pin.
411
For more information about this library please visit us at
5-
https://www.arduino.cc/en/Reference/AudioZero
12+
https://www.arduino.cc/en/Reference/{repository-name}
613

714
== License ==
815

extras/codespell-ignore-words-list.txt

Whitespace-only changes.

keywords.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#######################################
2-
# Syntax Coloring Map For Audio
2+
# Syntax Coloring Map For AudioZero
33
#######################################
44

55
#######################################

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version=1.1.1
33
author=Arduino
44
maintainer=Arduino <[email protected]>
55
sentence=Allows playing audio files from an SD card. For Arduino Zero, MKRZero and MKR1000 only.
6-
paragraph=With this library you can use the Arduino Zero ort MKR1000 DAC output (A0) to play audio files.<br />The audio files must be in the raw .wav format.
6+
paragraph=With this library you can use the Arduino Zero or MKR1000 DAC output (A0) to play audio files.<br />The audio files must be in the raw .wav format.
77
category=Signal Input/Output
88
url=https://www.arduino.cc/en/Reference/Audio
99
architectures=samd

0 commit comments

Comments
 (0)