Add MP3 examples #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Examples | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
example: | |
- "examples/arduino-blink" | |
- "examples/arduino-gnss" | |
- "examples/arduino-mp3-player" | |
- "examples/arduino-multiprocessing-message" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
# On Linux, wxPython ("needed" for flash_writer.py) | |
# has a dependency on GTK+. Install it here. | |
# the tool just uses it to show a EULA dialog, | |
# so not critical, let's drop it later.. | |
- name: Install dependencies | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo apt-get install -y libgtk-3-dev libgtk-4-dev | |
fi | |
pip install -U https://github.com/platformio/platformio/archive/develop.zip | |
pio pkg install --global --platform symlink://. | |
shell: bash | |
- name: Build examples | |
run: | | |
pio run -d ${{ matrix.example }} |