diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-02-09 09:29:15 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-02-09 09:29:42 +0000 |
commit | 8fa6dd893087782dd6a59b748896fb58b9b1f821 (patch) | |
tree | 5f92818e2a6a46822282c8b526aed167997bb8c5 | |
parent | 5c5a79813ea6d6d57326f82145816200b8a41622 (diff) |
- Run open source PR build for skylake architecture.
- Show info about hw used for build.
-rwxr-xr-x | screwdriver/build-vespa.sh | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/screwdriver/build-vespa.sh b/screwdriver/build-vespa.sh index a0e205d2597..61e5553cd37 100755 --- a/screwdriver/build-vespa.sh +++ b/screwdriver/build-vespa.sh @@ -21,6 +21,16 @@ if ! source $SOURCE_DIR/screwdriver/detect-what-to-build.sh; then SHOULD_BUILD=systemtest fi +build_cpp(source_dir) { + cat /proc/cpuinfo | grep "model name" | head -1 + cat /proc/cpuinfo | grep "flags" | head -1 + # TODO This will only build for x86_64 architecture, and is used for pull request builds. + cmake3 -DVESPA_UNPRIVILEGED=no -DDEFAULT_VESPA_CPU_ARCH_FLAGS="-march=skylake" $source_dir + time make -j ${NUM_THREADS} + time ctest3 --output-on-failure -j ${NUM_THREADS} + ccache --show-stats +} + echo "Building: $SHOULD_BUILD" cd ${SOURCE_DIR} @@ -28,10 +38,7 @@ cd ${SOURCE_DIR} case $SHOULD_BUILD in cpp) ./bootstrap.sh full - cmake3 -DVESPA_UNPRIVILEGED=no . - time make -j ${NUM_THREADS} - time ctest3 --output-on-failure -j ${NUM_THREADS} - ccache --show-stats + build_cpp . ;; java) ./bootstrap.sh java @@ -44,10 +51,7 @@ case $SHOULD_BUILD in make -C client/go install-all ./bootstrap.sh java time mvn -V $VESPA_MAVEN_EXTRA_OPTS install - cmake3 -DVESPA_UNPRIVILEGED=no . - time make -j ${NUM_THREADS} - time ctest3 --output-on-failure -j ${NUM_THREADS} - ccache --show-stats + build_cpp . make install ;; esac |