This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
chore(deps): bump actions/checkout from 2 to 4 #100
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: build | |
on: | |
push: | |
branches: [ "main" ] | |
tags: [ "v*" ] | |
paths-ignore: [ "*.md" ] | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: [ "*.md" ] | |
env: | |
IDF_COMPONENT_MANAGER: "1" | |
jobs: | |
idf: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# ESP-IDF versions and targets | |
idf_ver: [ v4.3, v4.4 ] | |
idf_target: [ esp32, esp32s2 ] | |
# Filter out unsupported combinations | |
exclude: | |
- { idf_target: esp32c3, idf_ver: v4.3 } | |
- { idf_target: esp32s3, idf_ver: v4.3 } | |
container: espressif/idf:release-${{ matrix.idf_ver }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Component Manager | |
if: ${{ matrix.idf_ver == 'v4.3' }} | |
run: | | |
. ${IDF_PATH}/export.sh | |
pip install --upgrade idf-component-manager | |
- name: Build | |
env: | |
IDF_TARGET: ${{ matrix.idf_target }} | |
run: | | |
# Switch to SoftAP provisioning for esp32s2 | |
if [ ${{ matrix.idf_target == 'esp32s2' }} ]; then | |
echo "CONFIG_WIFI_AUTO_PROV_TYPE_BLE=n" >> sdkconfig | |
echo "CONFIG_WIFI_AUTO_PROV_TYPE_SOFT_AP=y" >> sdkconfig | |
echo "CONFIG_BT_ENABLED=n" >> sdkconfig | |
fi | |
. ${IDF_PATH}/export.sh | |
idf.py build | |
platformio: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install platformio | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade platformio | |
- name: Setup Component Manager | |
run: | | |
pip install --upgrade idf-component-manager | |
- name: Build | |
run: platformio run |