Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLeitwolf112026-09-25 00:22:24 +0300
committerLeitwolf112026-09-25 00:22:24 +0300
commitcbb65f9db0cead23ea03897eb5a13cf159a054d5 (patch)
tree7df3e4bd8bdd1786152c7a63980b4c0affe35649
parentfa9c41a6c634aa7ac5a5e98c425e5be2e4b9b62f (diff)
downloadcatch3-cbb65f9db0cead23ea03897eb5a13cf159a054d5.tar.gz
Fix Windows ClangCL build-system CI: select compatible Conan runner, expose MSBuild, and use ClangCL in Premake and Xmake
-rw-r--r--.github/workflows/alternative-build-systems.yml7
-rw-r--r--.github/workflows/package-manager-builds.yaml3
-rw-r--r--premake5.lua1
3 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/alternative-build-systems.yml b/.github/workflows/alternative-build-systems.yml
index 7f2cf531..114d512e 100644
--- a/.github/workflows/alternative-build-systems.yml
+++ b/.github/workflows/alternative-build-systems.yml
@@ -19,7 +19,7 @@ jobs:
xmake-version: '3.1.1'
- name: Configure Clang build
- run: xmake f --toolchain=clang -m debug -y
+ run: xmake f --toolchain=${{ runner.os == 'Windows' && 'clang-cl' || 'clang' }} -m debug -y
- name: Build
run: xmake -j 4
@@ -42,6 +42,11 @@ jobs:
with:
version: '5.0.0-beta7'
+ - uses: microsoft/setup-msbuild@v3
+ if: runner.os == 'Windows'
+ with:
+ msbuild-architecture: x64
+
- name: Generate and build Visual Studio projects
if: runner.os == 'Windows'
shell: pwsh
diff --git a/.github/workflows/package-manager-builds.yaml b/.github/workflows/package-manager-builds.yaml
index cfd7cd67..d98a5b63 100644
--- a/.github/workflows/package-manager-builds.yaml
+++ b/.github/workflows/package-manager-builds.yaml
@@ -8,7 +8,8 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
- os: [macos-15, windows-2025]
+ # Conan's detected MSVC runtime targets the VS 2022 (v143) toolset.
+ os: [macos-15, windows-2022]
conan_version:
- '2.31.1'
diff --git a/premake5.lua b/premake5.lua
index 9c2115d2..7a7d5e2a 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -13,6 +13,7 @@ workspace "Catch3"
filter "system:windows"
architecture "x86_64"
+ toolset "clang"
filter {}
filter "system:macosx"