diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a8207a72f..26d1d5cdb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,7 +9,7 @@ on: jobs: # Deploy release deploy: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 container: johnmcfarlane/cnl_ci:gcc-10 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d60a3acc1..386f35fd3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,7 @@ on: jobs: # Build and test many combinations on Linux/OS X using Conan clang-tidy: + if: false strategy: matrix: int128: ["True", "False"] @@ -225,6 +226,7 @@ jobs: # Build and test on Windows using Conan windows: + if: false strategy: matrix: name: [2022-64, 2022-32, 2019-64, 2019-32] @@ -301,7 +303,7 @@ jobs: # Test documentation generation doxygen: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 container: johnmcfarlane/cnl_ci:base-21.10 steps: - uses: actions/checkout@v2 @@ -391,7 +393,7 @@ jobs: # Install on mature Linux distro using only CMake install: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/wide-integer.yml b/.github/workflows/wide-integer.yml index 6f29d7e56..ce9424e6b 100644 --- a/.github/workflows/wide-integer.yml +++ b/.github/workflows/wide-integer.yml @@ -8,7 +8,7 @@ on: jobs: # Check for updates to wide-integer library update-check: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 container: johnmcfarlane/cnl_ci:base-21.10 steps: - uses: actions/checkout@v2 diff --git a/test/unit/presentations/cppcon2017.cpp b/test/unit/presentations/cppcon2017.cpp index f044670f4..a83198379 100644 --- a/test/unit/presentations/cppcon2017.cpp +++ b/test/unit/presentations/cppcon2017.cpp @@ -20,7 +20,7 @@ namespace filesystem = std::filesystem; template using fixed_point = cnl::scaled_integer>; -#if (defined(_MSC_VER) && _MSC_VER < 1932) || (defined(__GNUC__) && __cplusplus < 201703L) // wg21.link/LWG3657 +#if (defined(_MSC_VER) && _MSC_VER < 1932) || (defined(__GNUC__) && __cplusplus < 201703L) // wg21.link/LWG3657 template<> struct std::hash { auto operator()(filesystem::path const& p) const @@ -30,6 +30,7 @@ struct std::hash { }; #endif +#if (defined(__clang__) && (__clang_major__ <= 13)) // wg21.link/LWG3657 namespace a { using std::unique_ptr; using std::unordered_map; @@ -38,6 +39,7 @@ namespace a { // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays,cppcoreguidelines-avoid-non-const-global-variables) unordered_map> cache; } +#endif namespace b { void f() diff --git a/test/unit/presentations/cppdub2018.cpp b/test/unit/presentations/cppdub2018.cpp index 0a9e84076..6c0c509cd 100644 --- a/test/unit/presentations/cppdub2018.cpp +++ b/test/unit/presentations/cppdub2018.cpp @@ -22,7 +22,7 @@ using cnl::make_scaled_integer; using cnl::power; using cnl::scaled_integer; -#if (defined(_MSC_VER) && _MSC_VER < 1932) || (defined(__GNUC__) && __cplusplus < 201703L) // wg21.link/LWG3657 +#if (defined(_MSC_VER) && _MSC_VER < 1932) || (defined(__GNUC__) && __cplusplus < 201703L) // wg21.link/LWG3657 template<> struct std::hash { auto operator()(filesystem::path const& p) const @@ -32,6 +32,7 @@ struct std::hash { }; #endif +#if (defined(__clang__) && (__clang_major__ <= 13)) // wg21.link/LWG3657 namespace a { using std::unique_ptr; using std::unordered_map; @@ -40,6 +41,7 @@ namespace a { // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays,cppcoreguidelines-avoid-non-const-global-variables) unordered_map> cache; } +#endif namespace b { #if defined(CNL_IOSTREAMS_ENABLED)