Skip to content

Commit

Permalink
Fix mbed build on master (#16010)
Browse files Browse the repository at this point in the history
* Revert "CI split between master (full) and PR (smoke) for MbedOS (#15587)"

This reverts commit bfa2e6b.

* Skip mbed build steps depending on modified paths

* Fix build
  • Loading branch information
Damian-Nordic authored and pull[bot] committed Nov 8, 2023
1 parent 994b13a commit 79103b6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 86 deletions.
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

0 comments on commit 79103b6

Please sign in to comment.