Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/siwx917-sleep-btn0-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs authored Oct 21, 2024
2 parents 5be0a39 + d7abcbf commit ccd1897
Show file tree
Hide file tree
Showing 472 changed files with 23,193 additions and 14,979 deletions.
5 changes: 5 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ isUpperCase
itemName
iterable
itsfoss
IW
JDK
jinja
JLink
Expand Down Expand Up @@ -893,6 +894,7 @@ microcontroller
microcontrollers
MicroSD
middleware
MIMXRT
minApplicableSoftwareVersion
Minicom
MinInterval
Expand Down Expand Up @@ -924,6 +926,7 @@ Multicast
multilib
Multiprotocol
multithreaded
Murata
mutex
mutexes
mv
Expand Down Expand Up @@ -1452,6 +1455,8 @@ trackFree
TransferSession
transitionTime
TransportMgrBase
triaged
triaging
TriggerEffect
TRNG
trustm
Expand Down
241 changes: 104 additions & 137 deletions .github/workflows/examples-nxp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ env:
CHIP_NO_LOG_TIMESTAMPS: true

jobs:
k32w0:
name: K32W0
FreeRTOS:
name: FREERTOS

env:
BUILD_TYPE: gn_k32w
BUILD_TYPE: gn_FreeRTOS

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

container:
image: ghcr.io/project-chip/chip-build-nxp:80
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
Expand All @@ -50,229 +50,189 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive

- name: Detect changed paths
uses: dorny/paths-filter@v3
id: changed_paths
with:
filters: |
nxp:
- '**/nxp/**'
- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}

- name: Build examples
- name: Build K32W0 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-k32w0-freertos-lighting \
--target nxp-k32w0-freertos-lighting-factory \
--target nxp-k32w0-freertos-lighting-rotating-id \
--target nxp-k32w0-freertos-contact-sensor \
--target nxp-k32w0-freertos-contact-sensor-low-power \
--target nxp-k32w0-freertos-contact-sensor-low-power-factory \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
- name: Get K32W0 lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w0+release light \
out/artifacts/nxp-k32w0-freertos-lighting/chip-k32w0x-light-example.elf \
out/artifacts/nxp-k32w0-freertos-lighting-factory/chip-k32w0x-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
- name: Get K32W0 contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w0+release contact \
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power-factory/chip-k32w0x-contact-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: K32W0
k32w1:
name: K32W1

env:
BUILD_TYPE: gn_k32w

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

container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive
- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}
- name: clean build
run: rm -rf ./out

- name: Build examples
- name: Build K32W1 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-k32w1-freertos-lighting \
--target nxp-k32w1-freertos-contact-sensor-low-power \
--target nxp-k32w1-freertos-lock-app \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
- name: Get K32W1 lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release light \
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release contact \
out/artifacts/nxp-k32w1-freertos-contact-sensor-low-power/chip-k32w1-contact-example.elf \
/tmp/bloat_reports/
- name: Get lock app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release lock \
out/artifacts/nxp-k32w1-freertos-lock-app/chip-k32w1-lock-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: K32W1
mcxw71:
name: MCXW71
env:
BUILD_TYPE: gn_k32w
- name: clean build
run: rm -rf ./out

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

container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}

- name: Build examples
- name: Build MCXW71 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-mcxw71-freertos-lighting \
--target nxp-mcxw71-freertos-contact-sensor-low-power \
--target nxp-mcxw71-freertos-lock-app \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release light \
out/artifacts/nxp-mcxw71-freertos-lighting/chip-mcxw71-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
- name: Get MCXW71 contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release contact \
out/artifacts/nxp-mcxw71-freertos-contact-sensor-low-power/chip-mcxw71-contact-example.elf \
/tmp/bloat_reports/
- name: Get lock app size stats
- name: Get MCXW71 lock app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release lock \
out/artifacts/nxp-mcxw71-freertos-lock-app/chip-mcxw71-lock-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: MCXW71
rw61x:
name: RW61X
env:
BUILD_TYPE: gn_rw61x
- name: clean build
run: rm -rf ./out

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
- name: Build RT1060 all clusters example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-all-clusters-wifi-iw416 \
--target nxp-rt1060-freertos-all-clusters-wifi-w8801 \
--target nxp-rt1060-freertos-all-clusters-wifi-ota-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1060 thermostat example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-thermostat-thread-wifi-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1060 laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-laundry-washer-wifi-evkc-iwx12 \
--target nxp-rt1060-freertos-laundry-washer-thread-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive
- name: clean build
run: rm -rf ./out

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}
- name: Build RT1170 all clusters example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-all-clusters-wifi-iwx12 \
--target nxp-rt1170-freertos-all-clusters-wifi-ota-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1170 thermostat example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-thermostat-thread-wifi-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1170 laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-laundry-washer-thread-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: clean build
run: rm -rf ./out

- name: Build RW61X all clusters example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-all-clusters-wifi \
--target nxp-rw61x-freertos-all-clusters-thread \
--target nxp-rw61x-freertos-all-clusters-wifi-ota-cmake \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RW61X thermostat example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-thermostat-wifi \
--target nxp-rw61x-freertos-thermostat-thread \
--target nxp-rw61x-freertos-thermostat-thread-wifi \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RW61X laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-laundry-washer-wifi \
--target nxp-rw61x-freertos-laundry-washer-thread \
build \
--copy-artifacts-to out/artifacts \
"
- name: clean build
run: rm -rf ./out

- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: RW61X
platform-name: NXP-FREERTOS
zephyr:
name: ZEPHYR

Expand All @@ -289,8 +249,15 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp

- name: Detect changed paths
uses: dorny/paths-filter@v3
id: changed_paths
with:
filters: |
nxp:
- '**/nxp/**'
- name: Build NXP Zephyr examples
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
Expand Down
Loading

0 comments on commit ccd1897

Please sign in to comment.