Skip to content

Commit

Permalink
[ESP32] Add ESP32 OTA provider and requestor app to CI builds (#13212)
Browse files Browse the repository at this point in the history
* Add ESP32 OTA provider and requestor app to CI builds

* Rename ESP32 OTA requestor project

* Increase the timeout to 95 minutes

* Split examples-esp32 workflow in two jobs
  • Loading branch information
shubhamdp authored and pull[bot] committed Jul 5, 2023
1 parent a9821ab commit 7cb2e2f
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 9 deletions.
59 changes: 51 additions & 8 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# TODO ESP32 https://github.com/project-chip/connectedhomeip/issues/1510
esp32:
name: ESP32
timeout-minutes: 105
timeout-minutes: 70

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
Expand All @@ -49,7 +49,7 @@ jobs:
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"

- name: Bootstrap
timeout-minutes: 25
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -99,22 +99,65 @@ jobs:
- name: Build example Bridge App
timeout-minutes: 10
run: scripts/examples/esp_example.sh bridge-app

- name: Uploading Size Reports
uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
with:
name: Size,ESP32-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: /tmp/bloat_reports/

esp32_1:
name: ESP32_1
timeout-minutes: 60

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-esp32:0.5.40
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"

steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh

- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }} && ${{ !env.ACT }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example Persistent Storage App
timeout-minutes: 10
run: scripts/examples/esp_example.sh persistent-storage sdkconfig.defaults

- name: Build example Shell App
timeout-minutes: 10
run: scripts/examples/esp_example.sh shell sdkconfig.defaults

- name: Build example Temperature Measurement App
timeout-minutes: 10
run: scripts/examples/esp_example.sh temperature-measurement-app sdkconfig.optimize.defaults

- name: Build example IPv6 Only App
timeout-minutes: 10
run: scripts/examples/esp_example.sh ipv6only-app sdkconfig.defaults

- name: Uploading Size Reports
uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
with:
name: Size,ESP32-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: /tmp/bloat_reports/
- name: Build example OTA Requestor App
run: scripts/examples/esp_example.sh ota-requestor-app sdkconfig.defaults
timeout-minutes: 10

- name: Build example OTA Provider App
run: scripts/examples/esp_example.sh ota-provider-app sdkconfig.defaults
timeout-minutes: 10
2 changes: 1 addition & 1 deletion examples/ota-requestor-app/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set(EXTRA_COMPONENT_DIRS
"${CMAKE_CURRENT_LIST_DIR}/../../common/QRCode"
)

project(chip-ota-requester-app)
project(chip-ota-requestor-app)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++14;-Os;-DLWIP_IPV6_SCOPES=0;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os;-DLWIP_IPV6_SCOPES=0" APPEND)

Expand Down

0 comments on commit 7cb2e2f

Please sign in to comment.