Skip to content

Commit 609b9b3

Browse files
committed
Switched back to using cmake build for simplicity
1 parent b7be579 commit 609b9b3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.gitlab/scripts.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
script:
2828
- CI_BUILD_DIR=$(cat ci-dir.txt)
2929
- cd $CI_BUILD_DIR && cat job-name.txt
30-
- ./$SCRIPT_DIR/devtools/host-config-build.py --no-clean --host-config gitlab.cmake $EXTRA_CMAKE_ARGS
31-
- cd build_gitlab/build
32-
- make -j $NPROC
33-
- make -j $NPROC install
30+
- ./$SCRIPT_DIR/devtools/host-config-build.py --no-clean --build --nprocs $NPROCS --host-config gitlab.cmake $EXTRA_CMAKE_ARGS
3431
artifacts:
3532
paths:
3633
- ci-dir.txt

scripts/devtools/host-config-build.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def parse_args():
3131
parser.add_argument('--build', action='store_true',
3232
help='Run make -j install after configuring build dirs.')
3333

34+
parser.add_argument('--nprocs', default=48,
35+
help="Set number of procs to use while building. This is not used if --build is not enabled.")
36+
3437
parser.add_argument('--lc-modules', type=str, default="",
3538
help='LC Modules to use during build, install and smoke test. This is not used if --build is not enabled.')
3639

@@ -106,8 +109,9 @@ def main():
106109
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
107110
print("~~~~~ Building Spheral")
108111
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
112+
build_cmd = f"{ml_cmd} {cmake_cmd} --build . --target install -j {args.nprocs}"
109113

110-
sexe("{0} {1} --build . -j 48 --target install".format(ml_cmd, cmake_cmd), echo=True, ret_output=False)
114+
sexe(build_cmd, echo=True, ret_output=False)
111115

112116
if __name__ == "__main__":
113117
main()

0 commit comments

Comments
 (0)