-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1017 Bytes
/
platformio.yml
File metadata and controls
42 lines (36 loc) · 1017 Bytes
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
39
40
41
42
name: PlatformIO CI
description: Build the project with PlatformIO
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
pio-env: [ "PAMI_WOKWI", "PAMI_USB_NO_WIFI", "PAMI_USB_WITH_WIFI"]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
# install the libraries before compiling
# otherwise compilation might fail to find the just-installed libraries
- name: Install platformIO libraries
run: pio lib install
- name: Build PlatformIO Project
run: pio run --environment ${{ matrix.pio-env }}