-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.13 KB
/
pio_test.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This workflow builds all platformio build targets to test whether any of them were broken by a commit.
name: Platform IO test
on:
push:
paths:
- test/**
- lib/**
- shared/**
- platformio.ini
- .github/workflows/pio_test.yml
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
name: Platform IO test (${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Cache pip packages and Platform IO build cache
uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio
.pio
key: platformio-${{ hashFiles('platformio.ini') }}-${{ matrix.os }}
- name: Install Platform IO
run: pip install -U platformio
- name: Platform IO test
run: pio test -e native