Skip to content

Commit

Permalink
Add no-wifi variant
Browse files Browse the repository at this point in the history
  • Loading branch information
erjiaqing committed Mar 15, 2022
1 parent c120ccc commit 2eca30c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ jobs:

strategy:
matrix:
build_variant: [no-ble-tsan]
build_variant: [no-ble-no-wifi-tsan]

env:
BUILD_VARIANT: ${{matrix.build_variant}}
Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:

strategy:
matrix:
build_variant: [no-ble-tsan, no-ble-asan]
build_variant: [no-ble-no-wifi-tsan]
env:
BUILD_VARIANT: ${{matrix.build_variant}}
TSAN_OPTIONS: "halt_on_error=1"
Expand Down
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def HostTargets():
variants = [
HostBuildVariant(name="ipv6only", enable_ipv4=False),
HostBuildVariant(name="no-ble", enable_ble=False),
HostBuildVariant(name="no-wifi", enable_wifi=False),
HostBuildVariant(name="tsan", conflicts=['asan'], use_tsan=True),
HostBuildVariant(name="asan", conflicts=['tsan'], use_asan=True),
HostBuildVariant(name="libfuzzer", use_libfuzzer=True, use_clang=True),
Expand Down
5 changes: 4 additions & 1 deletion scripts/build/builders/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def PlatformName(self):
class HostBuilder(GnBuilder):

def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, enable_ipv4=True,
enable_ble=True, use_tsan=False, use_asan=False, separate_event_loop=True,
enable_ble=True, enable_wifi=True, use_tsan=False, use_asan=False, separate_event_loop=True,
test_group=False, use_libfuzzer=False, use_clang=False,
use_platform_mdns=False
):
Expand All @@ -160,6 +160,9 @@ def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, enable_ip
if not enable_ble:
self.extra_gn_options.append('chip_config_network_layer_ble=false')

if not enable_wifi:
self.extra_gn_options.append('chip_enable_wifi=false')

if use_tsan:
self.extra_gn_options.append('is_tsan=true')

Expand Down

0 comments on commit 2eca30c

Please sign in to comment.