Skip to content

Commit

Permalink
added build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak-Shaha committed Sep 23, 2024
1 parent a6dd400 commit 2290728
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
3 changes: 2 additions & 1 deletion scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,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)
Expand Down
6 changes: 6 additions & 0 deletions scripts/build/builders/efr32.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 2290728

Please sign in to comment.