|
| 1 | +name: "esp_wifi_remote: build-tests" |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + types: [opened, synchronize, reopened, labeled] |
| 9 | + |
| 10 | +jobs: |
| 11 | + wifi_remote_api_compat: |
| 12 | + name: Check API compatibility of WiFi Remote |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + idf_ver: ["latest", "release-v5.3"] |
| 16 | + runs-on: ubuntu-20.04 |
| 17 | + container: espressif/idf:${{ matrix.idf_ver }} |
| 18 | + steps: |
| 19 | + - name: Checkout code |
| 20 | + uses: actions/checkout@v3 |
| 21 | + - name: Check that headers are the same as generated |
| 22 | + shell: bash |
| 23 | + run: | |
| 24 | + . ${IDF_PATH}/export.sh |
| 25 | + pip install idf-component-manager idf-build-apps --upgrade |
| 26 | + cp -r ./components/esp_wifi_remote ./components/esp_wifi_remote_base |
| 27 | + cd ./components/esp_wifi_remote/scripts |
| 28 | + python generate_and_check.py --base-dir ../../esp_wifi_remote_base |
| 29 | +
|
| 30 | + build_wifi_remote: |
| 31 | + name: Build WiFi Remote Test |
| 32 | + strategy: |
| 33 | + matrix: |
| 34 | + idf_ver: ["latest", "release-v5.3"] |
| 35 | + test: [ { app: smoke_test, path: "test/smoke_test" }] |
| 36 | + runs-on: ubuntu-20.04 |
| 37 | + container: espressif/idf:${{ matrix.idf_ver }} |
| 38 | + steps: |
| 39 | + - name: Checkout code |
| 40 | + uses: actions/checkout@v3 |
| 41 | + - name: Checkout protocols |
| 42 | + uses: actions/checkout@v3 |
| 43 | + with: |
| 44 | + repository: espressif/esp-protocols |
| 45 | + ref: wifi_remote-v0.4.0 |
| 46 | + sparse-checkout: | |
| 47 | + ci/build_apps.py |
| 48 | + ci/ignore_build_warnings.txt |
| 49 | + sparse-checkout-cone-mode: false |
| 50 | + path: protocols |
| 51 | + - name: ccache |
| 52 | + uses: hendrikmuhs/[email protected] |
| 53 | + with: |
| 54 | + key: ${{ matrix.idf_ver }} |
| 55 | + - name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} |
| 56 | + shell: bash |
| 57 | + run: | |
| 58 | + . ${IDF_PATH}/export.sh |
| 59 | + pip install idf-component-manager idf-build-apps --upgrade |
| 60 | + python ./components/esp_wifi_remote/scripts/generate_slave_configs.py ./components/esp_wifi_remote/${{matrix.test.path}} |
| 61 | + python $GITHUB_WORKSPACE/protocols/ci/build_apps.py ./components/esp_wifi_remote/${{matrix.test.path}} -vv --preserve-all |
| 62 | +
|
| 63 | + build_wifi_remote_example: |
| 64 | + name: Build WiFi Remote Example |
| 65 | + strategy: |
| 66 | + matrix: |
| 67 | + idf_ver: ["latest"] |
| 68 | + example: [ { app: host, path: "examples/mqtt" }, { app: slave, path: "examples/server" }] |
| 69 | + include: |
| 70 | + - idf_ver: "latest" |
| 71 | + example: { app: slave, path: "examples/server" } |
| 72 | + warning: "Warning: The smallest app partition is nearly full" |
| 73 | + |
| 74 | + runs-on: ubuntu-20.04 |
| 75 | + container: espressif/idf:${{ matrix.idf_ver }} |
| 76 | + steps: |
| 77 | + - name: Checkout code |
| 78 | + uses: actions/checkout@v3 |
| 79 | + - name: Checkout protocols |
| 80 | + uses: actions/checkout@v3 |
| 81 | + with: |
| 82 | + repository: espressif/esp-protocols |
| 83 | + ref: wifi_remote-v0.4.0 |
| 84 | + sparse-checkout: | |
| 85 | + ci/build_apps.py |
| 86 | + ci/ignore_build_warnings.txt |
| 87 | + sparse-checkout-cone-mode: false |
| 88 | + path: protocols |
| 89 | + - name: Build ${{ matrix.example.app }} with IDF-${{ matrix.idf_ver }} |
| 90 | + env: |
| 91 | + EXPECTED_WARNING: ${{ matrix.warning }} |
| 92 | + shell: bash |
| 93 | + run: | |
| 94 | + . ${IDF_PATH}/export.sh |
| 95 | + pip install idf-component-manager idf-build-apps --upgrade |
| 96 | + python $GITHUB_WORKSPACE/protocols/ci/build_apps.py ./components/esp_wifi_remote/${{matrix.example.path}} -vv --preserve-all |
| 97 | +
|
| 98 | + build_idf_examples_with_wifi_remote: |
| 99 | + name: Build IDF examples with WiFi Remote |
| 100 | + strategy: |
| 101 | + matrix: |
| 102 | + idf_ver: ["latest", "release-v5.3"] |
| 103 | + idf_target: ["esp32p4", "esp32h2", "esp32s3"] |
| 104 | + test: [ { app: idf_mqtt_example, path: "examples/protocols/mqtt/tcp" }] |
| 105 | + runs-on: ubuntu-20.04 |
| 106 | + container: espressif/idf:${{ matrix.idf_ver }} |
| 107 | + steps: |
| 108 | + - name: Checkout code |
| 109 | + uses: actions/checkout@v3 |
| 110 | + - name: ccache |
| 111 | + uses: hendrikmuhs/[email protected] |
| 112 | + with: |
| 113 | + key: ${{ matrix.idf_ver }} |
| 114 | + - name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }} |
| 115 | + shell: bash |
| 116 | + run: | |
| 117 | + . ${IDF_PATH}/export.sh |
| 118 | + pip install idf-component-manager idf-build-apps --upgrade |
| 119 | + export OVERRIDE_PATH=`pwd`/components/esp_wifi_remote |
| 120 | + echo ${OVERRIDE_PATH} |
| 121 | + sed -i '/espressif\/esp_wifi_remote:/a \ \ \ \ override_path: "${OVERRIDE_PATH}"' ${IDF_PATH}/${{matrix.test.path}}/main/idf_component.yml |
| 122 | + cat ${IDF_PATH}/${{matrix.test.path}}/main/idf_component.yml |
| 123 | + export PEDANTIC_FLAGS="-DIDF_CI_BUILD -Werror -Werror=deprecated-declarations -Werror=unused-variable -Werror=unused-but-set-variable -Werror=unused-function" |
| 124 | + export EXTRA_CFLAGS="${PEDANTIC_FLAGS} -Wstrict-prototypes" |
| 125 | + export EXTRA_CXXFLAGS="${PEDANTIC_FLAGS}" |
| 126 | + cd ${IDF_PATH}/${{matrix.test.path}} |
| 127 | + idf-build-apps find --config sdkconfig.ci* -vv --target ${{ matrix.idf_target }} |
| 128 | + idf-build-apps build --config sdkconfig.ci* -vv --target ${{ matrix.idf_target }} |
0 commit comments