diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-09-28 13:52:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-01 11:32:14 (GMT) |
commit | bd83c9f073b63b3bfa25a69c7ead9524f1810543 (patch) | |
tree | b73e084e216f79ce2a60ee9a69a3b5251d9e8bc4 /.gitlab | |
parent | 46b1fc2387f35c024e49e053f9b0e962dfb6fe72 (diff) | |
download | CMake-bd83c9f073b63b3bfa25a69c7ead9524f1810543.zip CMake-bd83c9f073b63b3bfa25a69c7ead9524f1810543.tar.gz CMake-bd83c9f073b63b3bfa25a69c7ead9524f1810543.tar.bz2 |
gitlab-ci: add jobs to make Linux release packages
These reuse the doc artifacts as the macOS package does.
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/os-linux.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml index 74b2de7..552aabd 100644 --- a/.gitlab/os-linux.yml +++ b/.gitlab/os-linux.yml @@ -17,6 +17,19 @@ variables: GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci" +.linux_package: + variables: + GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci" + LAUNCHER: "scl enable devtoolset-6 rh-python36 --" + +.linux_package_x86_64: + extends: .linux_package + + image: "kitware/cmake:build-linux-x86_64-deps-2020-04-02@sha256:77e9ab183f34680990db9da5945473e288f0d6556bce79ecc1589670d656e157" + + variables: + CMAKE_ARCH: x86_64 + ### Debian .debian10: @@ -195,6 +208,37 @@ interruptible: true +.cmake_build_linux_package: + stage: build + + script: + # Bootstrap. + - cp -v Utilities/Release/linux/$CMAKE_ARCH/cache.txt build/CMakeCache.txt + # Make sccache available. + - .gitlab/ci/sccache.sh + - export PATH=$PWD/.gitlab:$PATH + # Append sccache settings to the cache. + - echo "CMAKE_C_COMPILER_LAUNCHER:STRING=sccache" >> build/CMakeCache.txt + - echo "CMAKE_CXX_COMPILER_LAUNCHER:STRING=sccache" >> build/CMakeCache.txt + # CI settings. + - echo "CMake_TEST_INSTALL:BOOL=OFF" >> build/CMakeCache.txt + - echo "CMAKE_INSTALL_PREFIX:PATH=$PWD/build/install" >> build/CMakeCache.txt + - echo "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY:BOOL=ON" >> build/CMakeCache.txt + # Bootstrap + - cd build/ + - '$LAUNCHER ../bootstrap --parallel=$(nproc) --docdir=doc/cmake -- "-DCMake_DOC_ARTIFACT_PREFIX=$CI_PROJECT_DIR/build/install-doc"' + # FIXME: When CTest can drive an external CMake for the build as well, + # use the scripts here. + - "$LAUNCHER make -j$(nproc)" + # NOTE: This regex matches that used in the release build. + - "$LAUNCHER bin/ctest --output-on-failure -j$(nproc) -R '^(CMake\\.|CMakeLib\\.|CMakeServerLib\\.|RunCMake\\.ctest_memcheck)'" + # Make a package. + - bin/cpack -G TGZ + - bin/cpack -G STGZ + - sccache --show-stats + + interruptible: true + .cmake_build_release_linux: stage: build |