Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Dec 14, 2024
1 parent 17ba96d commit 7d1257d
Showing 1 changed file with 3 additions and 44 deletions.
47 changes: 3 additions & 44 deletions .builder/actions/build_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: Apache-2.0.

import Builder
import itertools
import os
import sys

Expand Down Expand Up @@ -62,7 +63,7 @@ def run(self, env):
'servicetests/tests/ShadowUpdate/',
]

for sample_path in samples:
for sample_path in itertools.chain(samples, servicetests, da_samples, defender_samples):
build_path = os.path.join('build', sample_path)
steps.append(['cmake',
f'-B{build_path}',
Expand All @@ -71,49 +72,7 @@ def run(self, env):
'-DCMAKE_BUILD_TYPE=RelWithDebInfo'])
# append extra cmake configs
steps[-1].extend(cmd_args.cmake_extra)
if sys.platform == "linux" or sys.platform == "linux2":
steps[-1].extend(env.config['cmake_args'])
steps.append(['cmake',
'--build', build_path,
'--config', 'RelWithDebInfo'])

for sample_path in servicetests:
build_path = os.path.join('build', sample_path)
steps.append(['cmake',
f'-B{build_path}',
f'-H{sample_path}',
f'-DCMAKE_PREFIX_PATH={env.install_dir}',
'-DCMAKE_BUILD_TYPE=RelWithDebInfo'])
# append extra cmake configs
steps[-1].extend(cmd_args.cmake_extra)
if sys.platform == "linux" or sys.platform == "linux2":
steps[-1].extend(env.config['cmake_args'])
steps.append(['cmake',
'--build', build_path,
'--config', 'RelWithDebInfo'])

for sample_path in da_samples:
build_path = os.path.join('build', sample_path)
steps.append(['cmake',
f'-B{build_path}',
f'-H{sample_path}',
f'-DCMAKE_PREFIX_PATH={env.install_dir}',
'-DCMAKE_BUILD_TYPE=RelWithDebInfo'])
# append extra cmake configs
steps[-1].extend(cmd_args.cmake_extra)
if sys.platform == "linux" or sys.platform == "linux2":
steps[-1].extend(env.config['cmake_args'])
steps.append(['cmake',
'--build', build_path,
'--config', 'RelWithDebInfo'])

for sample_path in defender_samples:
build_path = os.path.join('build', sample_path)
steps.append(['cmake',
f'-B{build_path}',
f'-H{sample_path}',
f'-DCMAKE_PREFIX_PATH={env.install_dir}',
'-DCMAKE_BUILD_TYPE=RelWithDebInfo'])
# Currently, cmake_args sets only Linux-specific options.
if sys.platform == "linux" or sys.platform == "linux2":
steps[-1].extend(env.config['cmake_args'])
steps.append(['cmake',
Expand Down

0 comments on commit 7d1257d

Please sign in to comment.