Skip to content

Fix: find toml recursively #535

Fix: find toml recursively

Fix: find toml recursively #535

name: Test Build IDF Apps
on:
pull_request:
paths:
- 'idf_build_apps/**'
push:
branches:
- main
env:
IDF_PATH: /opt/esp/idf
defaults:
run:
shell: bash
jobs:
build-python-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.7'
- run: |
pip install -U pip
pip install flit
flit build
- name: Upload built python packages
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/idf_build_apps-*.whl
build-apps-on-idf-env:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'test-old-idf-releases') }}
needs: build-python-packages
strategy:
matrix:
idf-branch: [ release-v5.0, release-v5.1, release-v5.2, release-v5.3 ]
runs-on: ubuntu-latest
container:
image: espressif/idf:${{ matrix.idf-branch }}
steps:
- name: Download wheel
uses: actions/download-artifact@v4
with:
name: wheel
- name: Build the Apps
run: |
bash $IDF_PATH/install.sh
. $IDF_PATH/export.sh
pip install idf_build_apps-*.whl
cd $IDF_PATH/examples/get-started/hello_world
echo 'CONFIG_IDF_TARGET="esp32"' >sdkconfig.defaults
idf-build-apps build --build-dir build_@t --size-file size_info.json
test -f build_esp32/hello_world.bin
test -f build_esp32/size_info.json
test ! -f build_esp32s2/hello_world.bin
build-apps-on-idf-master:
runs-on: ubuntu-latest
container:
image: espressif/idf:latest
env:
FLIT_ROOT_INSTALL: 1
steps:
- uses: actions/checkout@v4
- name: Build the Apps
run: |
bash $IDF_PATH/install.sh
. $IDF_PATH/export.sh
pip install flit
flit install -s
python -m idf_build_apps build -vv -t esp32 \
-p $IDF_PATH/examples/get-started/hello_world \
--size-file size_info.json
pytest --cov idf_build_apps --cov-report term-missing:skip-covered --junit-xml pytest.xml | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: pytest-coverage.txt
junitxml-path: pytest.xml
build-apps-on-idf-8266:
runs-on: ubuntu-latest
container:
image: python:3
env:
TOOLCHAIN_DIR: ${HOME}/.espressif/tools
FLIT_ROOT_INSTALL: 1
strategy:
matrix:
branch:
- v3.4
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt update \
&& apt install -y --no-install-recommends \
gcc \
git \
wget \
make \
libncurses-dev \
flex \
bison \
gperf
- name: Checkout the SDK
run: |
git clone --recursive --shallow-submodules \
--branch ${{ matrix.branch }} \
https://github.com/espressif/ESP8266_RTOS_SDK \
$IDF_PATH
- name: Install toolchain
run: |
${IDF_PATH}/install.sh
- name: Build Hello World
run: |
. ${IDF_PATH}/export.sh
pip install flit
flit install -s
idf-build-apps build -vv -t esp8266 \
--build-system make \
-p ${IDF_PATH}/examples/get-started/hello_world \
--build-dir build_@t \
--size-file size_info.json