-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.16 KB
/
examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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-multiprocessing-message"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
# 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 python3-wxgtk4.0
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 }}