-
Notifications
You must be signed in to change notification settings - Fork 86
59 lines (53 loc) · 1.36 KB
/
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
name: PlatformIO
on:
push:
paths:
- '**.ino'
- '**.ini'
- '**.cpp'
- '**.hpp'
- '**.h'
- '**.c'
- '**platformio.yml'
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U platformio
platformio update
- name: Build test
run: |
pwd
ls
mkdir -p tests/test_http
mkdir -p tests/test_https
cp examples/HTTP/HTTP/HTTP.ino tests/test_http/main.cpp
cp examples/HTTP/HTTPS/HTTPS.ino tests/test_https/main.cpp
# globally install the esp32FOTA library from local folder, don't update the platformio.ini
pio lib install --no-save file://$(realpath ./)
pio run
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/arduino-lint-action@v1
with:
project-type: library
library-manager: false
recursive: true