forked from platformio/platform-espressif32
-
Notifications
You must be signed in to change notification settings - Fork 35
75 lines (73 loc) · 2.6 KB
/
examples.yml
File metadata and controls
75 lines (73 loc) · 2.6 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
name: CI Examples
on:
workflow_dispatch: # Manually start a workflow
push:
paths-ignore:
- '.github/**' # Ignore changes towards the .github directory
- '**.md' # Do no build if *.md files changes
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04-arm, windows-latest, macos-15]
example:
- "examples/arduino-blink"
- "examples/arduino-fatfs"
- "examples/arduino-rmt-blink"
- "examples/arduino-usb-keyboard"
- "examples/arduino-wifiscan"
- "examples/espidf-arduino-blink"
- "examples/espidf-arduino-littlefs"
- "examples/espidf-arduino-C6-ULP-blink"
- "examples/espidf-blink"
- "examples/espidf-coap-server"
- "examples/espidf-exceptions"
- "examples/espidf-hello-world"
- "examples/espidf-http-request"
- "examples/espidf-peripherals-uart"
- "examples/espidf-peripherals-usb"
- "examples/espidf-storage-sdcard"
- "examples/espidf-ulp"
- "examples/espidf-ulp-riscv"
- "examples/espidf-ulp-lp"
- "examples/tasmota"
exclude:
- os: windows-latest
example: "examples/espidf-ulp"
- os: windows-latest
example: "examples/espidf-ulp-lp"
- os: windows-latest
example: "examples/espidf-ulp-riscv"
- os: windows-latest
example: "examples/espidf-arduino-C6-ULP-blink"
- os: windows-latest
example: "examples/tasmota"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
submodules: "recursive"
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
enable-cache: false
- name: Install dependencies
run: |
uv pip install --system -U https://github.com/Jason2866/platformio-core/archive/refs/tags/v6.1.19.zip
pio pkg install --global --platform file://.
- name: git clone Tasmota and add to examples
if: "matrix.example == 'examples/tasmota'"
run: |
git clone -b development --depth 1 https://github.com/arendst/Tasmota.git examples/tasmota
cp examples/tasmota_platformio_override.ini examples/tasmota/platformio_override.ini
- name: Build examples
env:
PYTHONIOENCODING: utf-8
PYTHONUTF8: '1'
run: pio run -d ${{ matrix.example }}