Skip to content

CI/CD: moved to ESP-IDF 5.3 #99

CI/CD: moved to ESP-IDF 5.3

CI/CD: moved to ESP-IDF 5.3 #99

Workflow file for this run

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
- esp32p4
- esp8266
example:
- DallasTemperature
steps:
- uses: actions/checkout@v4
- 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_32=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