feat(ci): Build ESP-IDF examples in esp-usb CI #1
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 ESP-IDF USB examples | |
on: | |
schedule: | |
- cron: '0 0 * * SAT' # Saturday midnight | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
idf_ver: ["latest"] | |
runs-on: ubuntu-20.04 | |
container: espressif/idf:${{ matrix.idf_ver }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Build ESP-IDF USB examples | |
shell: bash | |
run: | | |
. ${IDF_PATH}/export.sh | |
pip install idf-component-manager==1.5.2 idf-build-apps --upgrade | |
python .github/ci/override_managed_component.py esp_tinyusb device/esp_tinyusb ${IDF_PATH}/examples/peripherals/usb/device/tusb_* | |
idf-build-apps find --path ${IDF_PATH}/examples/peripherals/usb/device/ --recursive --target all | |
idf-build-apps build --path ${IDF_PATH}/examples/peripherals/usb/device/ --recursive --target all |