Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mbed build on master #16010

Merged
merged 3 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Full builds - Mbed OS
name: Build example - Mbed OS

on:
push:
pull_request:
workflow_dispatch:

concurrency:
group: full-${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
cancel-in-progress: true

jobs:
mbedos:
name: Run
name: Mbed OS examples building
timeout-minutes: 200

env:
BUILD_TYPE: mbedos
APP_PROFILE: release
APP_TARGET: CY8CPROTO_062_4343W

Expand All @@ -50,6 +52,16 @@ jobs:
attempt_limit: 3
attempt_delay: 2000

- name: Detect changed paths
uses: dorny/paths-filter@v2
id: changed_paths
with:
filters: |
mbed:
- '**/mbed/**'
pigweedapp:
- 'examples/pigweed-app/mbed/**'

- name: Set up environment for size reports
if: ${{ !env.ACT }}
env:
Expand Down Expand Up @@ -79,6 +91,7 @@ jobs:
/tmp/bloat_reports/

- name: Build lighting-app example
if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true'
timeout-minutes: 20
run: |
scripts/examples/mbed_example.sh -a=lighting-app -b=$APP_TARGET -p=$APP_PROFILE
Expand All @@ -88,6 +101,7 @@ jobs:
/tmp/bloat_reports/

- name: Build pigweed-app example
if: github.event_name == 'push' || steps.changed_paths.outputs.pigweedapp == 'true'
timeout-minutes: 20
run: |
scripts/examples/mbed_example.sh -a=pigweed-app -b=$APP_TARGET -p=$APP_PROFILE
Expand All @@ -97,6 +111,7 @@ jobs:
/tmp/bloat_reports/

- name: Build all-clusters-app example
if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true'
timeout-minutes: 20
run: |
scripts/examples/mbed_example.sh -a=all-clusters-app -b=$APP_TARGET -p=$APP_PROFILE
Expand All @@ -106,6 +121,7 @@ jobs:
/tmp/bloat_reports/

- name: Build shell example
if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true'
timeout-minutes: 20
run: |
scripts/examples/mbed_example.sh -a=shell -b=$APP_TARGET -p=$APP_PROFILE
Expand All @@ -115,14 +131,15 @@ jobs:
/tmp/bloat_reports/

- name: Build ota-requestor-app example
if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true'
timeout-minutes: 20
run: |
scripts/examples/mbed_example.sh -a=ota-requestor-app -b=$APP_TARGET -p=$APP_PROFILE
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
mbed $APP_TARGET+$APP_PROFILE shell \
examples/ota-requestor-app/mbed/build-CY8CPROTO_062_4343W/release/chip-mbed-ota-requestor-app-example.elf \
/tmp/bloat_reports/

- name: Build unit tests
# Temporarily disable build due to running out of flash space
if: false
Expand Down
82 changes: 0 additions & 82 deletions .github/workflows/smoketest-mbed.yaml

This file was deleted.

1 change: 1 addition & 0 deletions examples/platform/mbed/util/include/DFUManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#ifdef CHIP_OTA_REQUESTOR
#include <BDXDownloader.h>
#include <DefaultOTARequestorStorage.h>
#include <OTAImageProcessorImpl.h>
#include <OTARequestor.h>
#include <OTARequestorDriverImpl.h>
Expand Down