From 764c38362777d638e67bdf47aa92a24facddfa27 Mon Sep 17 00:00:00 2001 From: Philip Top Date: Sun, 7 Jan 2024 07:13:00 -0800 Subject: [PATCH] update build pipelines with newer compilers --- .ci/azure-cmake-new.yml | 17 +++++++++++++++++ azure-pipelines.yml | 23 ++++++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .ci/azure-cmake-new.yml diff --git a/.ci/azure-cmake-new.yml b/.ci/azure-cmake-new.yml new file mode 100644 index 000000000..56a2fb4d9 --- /dev/null +++ b/.ci/azure-cmake-new.yml @@ -0,0 +1,17 @@ +steps: + # Note that silkeh/clang does not include ca-certificates, so check the shasum for verification + - bash: | + wget --no-check-certificate "https://cmake.org/files/v3.28/cmake-3.28.0-linux-x86_64.tar.gz" + echo "898f0b5ca6e2ea5286998e97bd33f030d7d09f18ca4b88be661fdfbad5dadd88 cmake-3.28.0-linux-x86_64.tar.gz" | shasum -sca 256 + displayName: Download CMake + + - task: ExtractFiles@1 + inputs: + archiveFilePatterns: "cmake*.tar.gz" + destinationFolder: "cmake_program" + displayName: Extract CMake + + - bash: + echo + "##vso[task.prependpath]$(Build.SourcesDirectory)/cmake_program/cmake-3.28.0-linux-x86_64/bin" + displayName: Add CMake to PATH diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 277c794a2..9697a29fb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -145,12 +145,33 @@ jobs: containerImage: silkeh/clang:10 cli11.std: 20 cli11.options: -DCLI11_FORCE_LIBCXX=ON -DCMAKE_CXX_FLAGS=-std=c++20 + container: $[ variables['containerImage'] ] + steps: + - template: .ci/azure-cmake.yml + - template: .ci/azure-build.yml + - template: .ci/azure-test.yml + + - job: Docker_new + variables: + cli11.single: OFF + pool: + vmImage: "ubuntu-latest" + strategy: + matrix: + gcc13: + containerImage: gcc:13 + cli11.std: 17 + cli11.options: -DCMAKE_CXX_FLAGS="-Wstrict-overflow=5" + gcc12: + containerImage: gcc:12 + cli11.std: 20 + cli11.options: -DCMAKE_CXX_FLAGS="-Wredundant-decls -Wconversion" clang17_20: containerImage: silkeh/clang:17 cli11.std: 23 cli11.options: -DCLI11_FORCE_LIBCXX=ON -DCMAKE_CXX_FLAGS=-std=c++23 container: $[ variables['containerImage'] ] steps: - - template: .ci/azure-cmake.yml + - template: .ci/azure-cmake-new.yml - template: .ci/azure-build.yml - template: .ci/azure-test.yml