-
Notifications
You must be signed in to change notification settings - Fork 1.4k
63 lines (60 loc) · 1.85 KB
/
test.platformio.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
53
54
55
56
57
58
59
60
61
62
63
name: PlatformIO CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
fail-fast: false
max-parallel: 20
matrix:
boards: ['all']
example: [
ChangeUID,
DumpInfo,
firmware_check,
FixBrickedUID,
MifareClassicValueBlock,
MinimalInterrupt,
ReadUidMultiReader,
rfid_default_keys,
rfid_write_personal_data,
Ntag216_AUTH,
ReadNUID,
RFID-Cloner,
rfid_read_personal_data,
]
#include:
# - boards: 'avr_only'
# example: AccessControl
steps:
- uses: actions/checkout@v4
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v4
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v5
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO all Boards
if: ${{ contains(matrix.boards, 'all') }}
# test all
run: platformio ci --lib=. --board=uno --board=megaatmega1280 --board=due --board=zero --board=d1_mini
env:
PLATFORMIO_CI_SRC: examples/${{ matrix.example }}/${{ matrix.example }}.ino
- name: Run PlatformIO avr Boards
if: ${{ contains(matrix.boards, 'avr_only') }}
# test avr_only
run: platformio ci --lib=. --board=uno --board=megaatmega1280
env:
PLATFORMIO_CI_SRC: examples/${{ matrix.example }}/${{ matrix.example }}.ino