mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-08-01 11:44:39 +02:00
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: "console_simple_init: build-tests"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, labeled]
|
|
|
|
jobs:
|
|
build_console_simple_init:
|
|
if: contains(github.event.pull_request.labels.*.name, 'console') || github.event_name == 'push'
|
|
name: Build
|
|
strategy:
|
|
matrix:
|
|
idf_ver: ["latest", "release-v5.0"]
|
|
idf_target: ["esp32"]
|
|
test: [ { app: example, path: "components/console_simple_init/examples" }]
|
|
runs-on: ubuntu-20.04
|
|
container: espressif/idf:${{ matrix.idf_ver }}
|
|
steps:
|
|
- name: Checkout esp-protocols
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
|
|
shell: bash
|
|
working-directory: ${{matrix.test.path}}
|
|
run: |
|
|
${IDF_PATH}/install.sh --enable-pytest
|
|
. ${IDF_PATH}/export.sh
|
|
python $IDF_PATH/tools/ci/ci_build_apps.py . --target ${{ matrix.idf_target }} -vv --preserve-all --pytest-app
|