-
Notifications
You must be signed in to change notification settings - Fork 19
65 lines (65 loc) · 2.13 KB
/
espidf-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
name: ESP-IDF builds
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
defaults:
run:
shell: bash
jobs:
espidf_info:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/espidf-ci
steps:
- name: ESP-IDF recent versions info
run: |
cd /esp-idf
git fetch || true
git tag | sort | awk "/$(git describe --tags)/ {f=1} f==1 {print}"
- name: ESP8266_RTOS_SDK recent versions info
run: |
cd /ESP8266_RTOS_SDK
git fetch || true
git tag | sort | awk "/$(git describe --tags)/ {f=1} f==1 {print}"
espidf_build:
runs-on: ubuntu-latest
container: ghcr.io/pstolarz/espidf-ci
strategy:
matrix:
plat:
- esp32
- esp32s2
- esp32s3
- esp32c2
- esp32c3
- esp32c6
- esp32h2
- esp8266
example:
- DallasTemperature
steps:
- uses: actions/checkout@v3
- name: Build
run: |
repo_dir=$(pwd)
rm -rf /tmp/espidf-build && mkdir /tmp/espidf-build && cd /tmp/espidf-build
mkdir components
ln -s ${repo_dir} components/OneWireNg
ln -s ${repo_dir}/examples/esp-idf/${{ matrix.example }}/main main
ln -s ${repo_dir}/examples/esp-idf/${{ matrix.example }}/CMakeLists.txt CMakeLists.txt
echo "CONFIG_PWR_CTRL_ENABLED=y" >sdkconfig.defaults
echo "CONFIG_OVERDRIVE_ENABLED=y" >>sdkconfig.defaults
echo "CONFIG_CRC8_ALGO_TAB_16LH=y" >>sdkconfig.defaults
echo "CONFIG_CRC16_ENABLED=y" >>sdkconfig.defaults
echo "CONFIG_CRC16_ALGO_BASIC=y" >>sdkconfig.defaults
echo "CONFIG_BUS_BLINK_PROTECTION=y" >>sdkconfig.defaults
echo "CONFIG_ITERATION_RETRIES=1" >>sdkconfig.defaults
if [[ "${{ matrix.plat }}" = "esp8266" ]]; then
sudo bash -c "source /ESP8266_RTOS_SDK/export.sh; idf.py build"
else
sudo bash -c "source /esp-idf/export.sh; idf.py --preview set-target ${{ matrix.plat }}; idf.py build"
fi