From 5a1fcda96096a172f1e7fb36fdbe8d269fce741d Mon Sep 17 00:00:00 2001 From: Sarthak Shaha Date: Wed, 11 Sep 2024 11:12:31 -0400 Subject: [PATCH] added build in CI --- .github/workflows/examples-efr32.yaml | 1 + scripts/build/build/targets.py | 3 ++- scripts/build/builders/efr32.py | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples-efr32.yaml b/.github/workflows/examples-efr32.yaml index c236b4ca3db4c3..bc5b883d60584a 100644 --- a/.github/workflows/examples-efr32.yaml +++ b/.github/workflows/examples-efr32.yaml @@ -67,6 +67,7 @@ jobs: ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ --enable-flashbundle \ + --target efr32-brd4187c-air-quality-sensor \ --target efr32-brd4187c-thermostat-openthread-mtd \ --target efr32-brd4187c-switch-shell-use-ot-coap-lib \ --target efr32-brd4187c-unit-test \ diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 4c90164b2d1c12..ab5e4b02a83376 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -263,7 +263,8 @@ def BuildEfr32Target(): TargetPart('light', app=Efr32App.LIGHT), TargetPart('lock', app=Efr32App.LOCK), TargetPart('thermostat', app=Efr32App.THERMOSTAT), - TargetPart('pump', app=Efr32App.PUMP) + TargetPart('pump', app=Efr32App.PUMP), + TargetPart('air-quality-sensor', app=Efr32App.AIR_QUALITY_SENSOR) ]) target.AppendModifier('rpc', enable_rpcs=True) diff --git a/scripts/build/builders/efr32.py b/scripts/build/builders/efr32.py index 6545f75b55da6b..bf1753ad651e86 100644 --- a/scripts/build/builders/efr32.py +++ b/scripts/build/builders/efr32.py @@ -45,6 +45,8 @@ def ExampleName(self): return 'thermostat' elif self == Efr32App.PUMP: return 'pump-app' + elif self == Efr32App.AIR_QUALITY_SENSOR: + return 'air-quality-sensor-app' else: raise Exception('Unknown app type: %r' % self) @@ -63,6 +65,8 @@ def AppNamePrefix(self): return 'matter-silabs-pump-example' elif self == Efr32App.UNIT_TEST: return 'matter-silabs-device_tests' + elif self == Efr32App.AIR_QUALITY_SENSOR: + return 'matter-silabs-air-quality-sensor-example' else: raise Exception('Unknown app type: %r' % self) @@ -81,6 +85,8 @@ def FlashBundleName(self): return 'pump_app.flashbundle.txt' elif self == Efr32App.UNIT_TEST: return os.path.join('tests', 'efr32_device_tests.flashbundle.txt') + elif self == Efr32App.AIR_QUALITY_SENSOR: + return 'air_quality_sensor_app.flashbundle.txt' else: raise Exception('Unknown app type: %r' % self)