Skip to content

Commit 5a1fcda

Browse files
committed
added build in CI
1 parent ccc0e3d commit 5a1fcda

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/examples-efr32.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
./scripts/run_in_build_env.sh \
6868
"./scripts/build/build_examples.py \
6969
--enable-flashbundle \
70+
--target efr32-brd4187c-air-quality-sensor \
7071
--target efr32-brd4187c-thermostat-openthread-mtd \
7172
--target efr32-brd4187c-switch-shell-use-ot-coap-lib \
7273
--target efr32-brd4187c-unit-test \

scripts/build/build/targets.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ def BuildEfr32Target():
263263
TargetPart('light', app=Efr32App.LIGHT),
264264
TargetPart('lock', app=Efr32App.LOCK),
265265
TargetPart('thermostat', app=Efr32App.THERMOSTAT),
266-
TargetPart('pump', app=Efr32App.PUMP)
266+
TargetPart('pump', app=Efr32App.PUMP),
267+
TargetPart('air-quality-sensor', app=Efr32App.AIR_QUALITY_SENSOR)
267268
])
268269

269270
target.AppendModifier('rpc', enable_rpcs=True)

scripts/build/builders/efr32.py

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def ExampleName(self):
4545
return 'thermostat'
4646
elif self == Efr32App.PUMP:
4747
return 'pump-app'
48+
elif self == Efr32App.AIR_QUALITY_SENSOR:
49+
return 'air-quality-sensor-app'
4850
else:
4951
raise Exception('Unknown app type: %r' % self)
5052

@@ -63,6 +65,8 @@ def AppNamePrefix(self):
6365
return 'matter-silabs-pump-example'
6466
elif self == Efr32App.UNIT_TEST:
6567
return 'matter-silabs-device_tests'
68+
elif self == Efr32App.AIR_QUALITY_SENSOR:
69+
return 'matter-silabs-air-quality-sensor-example'
6670
else:
6771
raise Exception('Unknown app type: %r' % self)
6872

@@ -81,6 +85,8 @@ def FlashBundleName(self):
8185
return 'pump_app.flashbundle.txt'
8286
elif self == Efr32App.UNIT_TEST:
8387
return os.path.join('tests', 'efr32_device_tests.flashbundle.txt')
88+
elif self == Efr32App.AIR_QUALITY_SENSOR:
89+
return 'air_quality_sensor_app.flashbundle.txt'
8490
else:
8591
raise Exception('Unknown app type: %r' % self)
8692

0 commit comments

Comments
 (0)