-
Notifications
You must be signed in to change notification settings - Fork 19
81 lines (81 loc) · 2.32 KB
/
platformio-builds.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: PlatformIO builds
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
defaults:
run:
shell: bash
jobs:
platformio_info:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/platformio-ci
steps:
- name: PlatformIO recent packages versions info
run: |
cd /platformio-ard-ci && sudo platformio pkg list && sudo platformio pkg outdated
cd /platformio-idf-ci && sudo platformio pkg list && sudo platformio pkg outdated
platformio_ard_build:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/platformio-ci
strategy:
matrix:
plat:
- uno
- uno_wifi_rev2
- due
- esp32dev
- d1
- nucleo_l552ze_q
- pico
example:
- DallasTemperature
env:
BUILD_FLAGS: "\
-DOWNG_NO_NATIVE_CONFIG \
-DCONFIG_PWR_CTRL_ENABLED \
-DCONFIG_OVERDRIVE_ENABLED \
-DCONFIG_CRC16_ENABLED \
-DCONFIG_ITERATION_RETRIES=1"
steps:
- uses: actions/checkout@v3
- name: Build
run: |
repo_dir=$(pwd)
cd /platformio-ard-ci
cp ${repo_dir}/examples/arduino/${{ matrix.example }}/${{ matrix.example }}.ino \
src/${{ matrix.example }}.ino
sudo platformio pkg install -l ${repo_dir}
sudo PLATFORMIO_BUILD_FLAGS="${BUILD_FLAGS}" platformio run -e ${{ matrix.plat }}
platformio_idf_build:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/platformio-ci
strategy:
matrix:
plat:
- esp32-s2-saola-1
- esp32-c3-devkitm-1
example:
- DallasTemperature
env:
BUILD_FLAGS: "\
-DOWNG_NO_NATIVE_CONFIG \
-DCONFIG_PWR_CTRL_ENABLED \
-DCONFIG_OVERDRIVE_ENABLED \
-DCONFIG_CRC16_ENABLED \
-DCONFIG_ITERATION_RETRIES=1 \
-DCONFIG_OW_PIN=13"
steps:
- uses: actions/checkout@v3
- name: Build
run: |
repo_dir=$(pwd)
cd /platformio-idf-ci
cp ${repo_dir}/examples/esp-idf/${{ matrix.example }}/main/${{ matrix.example }}.cpp \
src/${{ matrix.example }}.cpp
sudo platformio pkg install -l ${repo_dir}
sudo PLATFORMIO_BUILD_FLAGS="${BUILD_FLAGS}" platformio run -e ${{ matrix.plat }}