-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- It also enable parallel builds for those builds. - It also enforce early-stop build on error.
- Loading branch information
1 parent
d3be169
commit 16012ee
Showing
11 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# Client maintainer: [email protected] | ||
|
||
include(ProcessorCount) | ||
ProcessorCount(NCPUS) | ||
math(EXPR N2CPUS "${NCPUS}*2") | ||
|
||
set(ENV{CC} gcc) | ||
set(ENV{CXX} g++) | ||
set(ENV{FC} gfortran) | ||
|
@@ -25,7 +21,6 @@ CMAKE_CXX_FLAGS:STRING=-Wall | |
CMAKE_Fortran_FLAGS:STRING=-Wall | ||
") | ||
|
||
set(CTEST_TEST_ARGS PARALLEL_LEVEL ${NCPUS}) | ||
set(CTEST_CMAKE_GENERATOR "Unix Makefiles") | ||
set(CTEST_CMAKE_GENERATOR "Ninja") | ||
list(APPEND CTEST_UPDATE_NOTES_FILES "${CMAKE_CURRENT_LIST_FILE}") | ||
include(${CMAKE_CURRENT_LIST_DIR}/ci-common.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
cmake_minimum_required(VERSION 3.0 FATAL_ERROR) | ||
|
||
set(version 1.11.0) | ||
|
||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") | ||
set(sha256sum 9726e730d5b8599f82654dc80265e64a10a8a817552c34153361ed0c017f9f02) | ||
set(platform linux) | ||
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin") | ||
set(sha256sum 21915277db59756bfc61f6f281c1f5e3897760b63776fd3d360f77dd7364137f) | ||
set(platform mac) | ||
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") | ||
set(sha256sum d0ee3da143211aa447e750085876c9b9d7bcdd637ab5b2c5b41349c617f22f3b) | ||
set(platform win) | ||
else() | ||
message(FATAL_ERROR "Unrecognized platform ${CMAKE_HOST_SYSTEM_NAME}") | ||
endif() | ||
|
||
set(tarball "ninja-${platform}.zip") | ||
|
||
file(DOWNLOAD | ||
"https://github.com/ninja-build/ninja/releases/download/v${version}/${tarball}" $ENV{CI_ROOT_DIR}/.local/bin/${tarball} | ||
EXPECTED_HASH SHA256=${sha256sum} | ||
SHOW_PROGRESS | ||
) | ||
|
||
execute_process( | ||
COMMAND ${CMAKE_COMMAND} -E tar xf ${tarball} | ||
WORKING_DIRECTORY $ENV{CI_ROOT_DIR}/.local/bin | ||
RESULT_VARIABLE extract_results | ||
) | ||
|
||
if(extract_results) | ||
message(FATAL_ERROR "Extracting `${tarball}` failed: ${extract_results}.") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters