Fix build when using latest version of Arduino ESP32 (v3.0.0 and IDF v5.1) #78
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |