From 002e3feec340799c5ad6c91c6d345a3a5e583007 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 21 Mar 2023 23:12:59 +0100 Subject: [PATCH] ci: clang-16 support added to CI --- .github/workflows/ci-conan.yml | 13 +++++++++++++ .github/workflows/ci-test-package-cmake.yml | 13 +++++++++++++ conanfile.py | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-conan.yml b/.github/workflows/ci-conan.yml index 77d3d8d5..e0ec30c2 100644 --- a/.github/workflows/ci-conan.yml +++ b/.github/workflows/ci-conan.yml @@ -149,6 +149,19 @@ jobs: }, lib: "libc++", } + - { + name: "Ubuntu Clang-16 + libc++", + os: ubuntu-22.04, + compiler: + { + type: CLANG, + version: 16, + cc: "clang-16", + cxx: "clang++-16", + std: 20, + }, + lib: "libc++", + } - { name: "MacOS Apple Clang 13", os: macos-11, diff --git a/.github/workflows/ci-test-package-cmake.yml b/.github/workflows/ci-test-package-cmake.yml index b823f137..e902e7c1 100644 --- a/.github/workflows/ci-test-package-cmake.yml +++ b/.github/workflows/ci-test-package-cmake.yml @@ -153,6 +153,19 @@ jobs: }, lib: "libc++", } + - { + name: "Ubuntu Clang-16 + libc++", + os: ubuntu-22.04, + compiler: + { + type: CLANG, + version: 16, + cc: "clang-16", + cxx: "clang++-16", + std: 20, + }, + lib: "libc++", + } - { name: "MacOS Apple Clang 13", os: macos-11, diff --git a/conanfile.py b/conanfile.py index 16d0fda7..798fcb89 100644 --- a/conanfile.py +++ b/conanfile.py @@ -146,7 +146,7 @@ class MPUnitsConan(ConanFile): str(self._full_compiler_version), min_version ): raise ConanInvalidConfiguration( - f"{self.ref} requires at least {compiler} {min_version}" + f"{self.ref} requires at least {compiler} {min_version} ({self._full_compiler_version} in use)" ) def layout(self):