Progmasoft Git

tazelish

Installs Tazel and chooses which version of it runs.

Clonegit clone https://git.progmasoft.com/tazelish

Install LLVM 23.1.3 for clang-cl on Windows

The hosted windows-2025 image now carries MSVC 14.52, whose STL stops
with STL1000 unless the compiler is Clang 22 or newer, while the LLVM
of the same image is older: every Windows build failed in
yvals_core.h. The job installs LLVM 23.1.3, the version used on Linux,
through Chocolatey, which checks the installer, prints the clang-cl
version and points BAZEL_LLVM at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Commit
7abb71fb81e3c8827649e6601efd860eec5138b2
Author
Leitwolf11 ·
Parents
a81090c7362a

Files · Download .tar.gz

Changes

 .github/workflows/ci.yml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7840607..e7462a2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,11 +28,16 @@ jobs:
       - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
           persist-credentials: false
-      # The hosted Windows image carries LLVM, whose clang-cl the Bazel
-      # configuration uses.
+      # The Bazel configuration uses clang-cl. The LLVM of the hosted Windows
+      # image can be older than its MSVC STL accepts (MSVC 14.52 wants Clang
+      # 22 or newer), so the same LLVM as on Linux is installed; Chocolatey
+      # checks the checksum of the installer.
       - if: runner.os == 'Windows'
         shell: pwsh
-        run: '"BAZEL_LLVM=C:\Program Files\LLVM" | Out-File -FilePath $env:GITHUB_ENV -Append'
+        run: |
+          choco install llvm --version=23.1.3 --yes --no-progress --force
+          & "C:\Program Files\LLVM\bin\clang-cl.exe" --version
+          "BAZEL_LLVM=C:\Program Files\LLVM" | Out-File -FilePath $env:GITHUB_ENV -Append
       # Pushes to the default branch write to the Progmasoft remote cache and
       # pull requests only read it; a pull request from a fork gets no secrets
       # and builds without it.