-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (51 loc) · 1.39 KB
/
ci.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
name: PlatformIO CI
on: [push]
jobs:
build-pio:
runs-on: ubuntu-latest
strategy:
matrix:
example:
- examples/hello_world
- examples/touch_button
- examples/dial_number
- examples/native_sdl
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Install SDL2
if: ${{ matrix.example == 'examples/native_sdl' }}
run: |
sudo apt-get update
sudo apt-get install -y libsdl2 libsdl2-dev
- name: Build PlatformIO examples
run: pio run --project-dir ${{ matrix.example }}
build-idf:
runs-on: ubuntu-latest
strategy:
matrix:
example:
- examples/dial_number
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
${{ matrix.example }}/build
${{ matrix.example }}/managed_components
key: ${{ runner.os }}-idf
- uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.1.2
target: esp32s3
path: ${{ matrix.example }}