Skip to content

Commit

Permalink
ci: add idf-build-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Jan 19, 2024
1 parent 1e8cddf commit 86d3f50
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .build-test-rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usb/test_app:
disable:
- if: SOC_USB_OTG_SUPPORTED != 1
19 changes: 9 additions & 10 deletions .github/workflows/build_and_run_test_app_usb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,32 @@ jobs:
fail-fast: false
matrix:
idf_ver: ["release-v4.4", "release-v5.0", "release-v5.1", "release-v5.2", "latest"]
idf_target: ["esp32s2", "esp32s3"]
runs-on: ubuntu-20.04
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Build USB Test Application
env:
IDF_TARGET: ${{ matrix.idf_target }}
shell: bash
working-directory: usb/test_app
run: |
. ${IDF_PATH}/export.sh
export PEDANTIC_FLAGS="-DIDF_CI_BUILD -Werror -Werror=deprecated-declarations -Werror=unused-variable -Werror=unused-but-set-variable -Werror=unused-function"
export EXTRA_CFLAGS="${PEDANTIC_FLAGS} -Wstrict-prototypes"
export EXTRA_CXXFLAGS="${PEDANTIC_FLAGS}"
idf.py build
pip install idf-build-apps --upgrade
idf-build-apps find
idf-build-apps build
- uses: actions/upload-artifact@v2
with:
name: usb_test_app_bin_${{ matrix.idf_target }}_${{ matrix.idf_ver }}
name: usb_test_app_bin_${{ IDF_TARGET }}_${{ matrix.idf_ver }}
path: |
usb/test_app/build/bootloader/bootloader.bin
usb/test_app/build/partition_table/partition-table.bin
usb/test_app/build/usb_test_app.bin
usb/test_app/build/usb_test_app.elf
usb/test_app/build/flasher_args.json
usb/test_app/build_${IDF_TARGET}/bootloader/bootloader.bin
usb/test_app/build_${IDF_TARGET}/partition_table/partition-table.bin
usb/test_app/build_${IDF_TARGET}/usb_test_app.bin
usb/test_app/build_${IDF_TARGET}/usb_test_app.elf
usb/test_app/build_${IDF_TARGET}/flasher_args.json
run-target:
name: Run USB Test App on target
Expand Down
8 changes: 8 additions & 0 deletions .idf_build_apps.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
target = "all"
paths = "."
recursive = true
manifest_file = ".build-test-rules.yml"
check_warnings = true

# build related options
build_dir = "build_@t"

0 comments on commit 86d3f50

Please sign in to comment.