From 2fa01c7a0a309084817c85765127cdc0ed07c8ff Mon Sep 17 00:00:00 2001 From: TheRealGioviok <425gioviok@gmail.com> Date: Wed, 18 Feb 2026 13:43:49 +0100 Subject: [PATCH] Bench: 15454427 --- .github/workflows/compilation.yml | 34 ++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 5749dde2..98e9a738 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -20,9 +20,11 @@ jobs: - znver4 compiler: - g++ - - clang++ + - clang++-21 exclude: - - os: macos-latest + - os: + runner: macos-latest + name: macos arch: znver4 include: - { os: { runner: ubuntu-latest }, arch: x86-64-v3, compiler: g++-12 } @@ -34,6 +36,20 @@ jobs: persist-credentials: false ref: ${{ github.event.pull_request.head.sha }} + - name: Install Clang 21 (Linux) + if: runner.os == 'Linux' && matrix.compiler == 'clang++-21' + run: | + wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc + echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-21 main" | sudo tee /etc/apt/sources.list.d/llvm-21.list + sudo apt-get update + sudo apt-get install -y clang-21 + + - name: Install Clang 21 (macOS) + if: runner.os == 'macOS' && matrix.compiler == 'clang++-21' + run: | + brew install llvm@21 + echo "$(brew --prefix llvm@21)/bin" >> $GITHUB_PATH + - name: Obtain Reference Bench run: | benchref=$(git show -s --format=%B HEAD | sed '1!G;h;$!d' | grep -m 1 -o -x '[[:space:]]*\b[Bb]ench[ :]\+[1-9][0-9]*\b[[:space:]]*' | sed 's/[^0-9]//g') @@ -94,10 +110,10 @@ jobs: fail-fast: false matrix: include: - - { arch: x86-64-v3, sys: mingw64, compiler: g++ } - - { arch: x86-64-v3, sys: ucrt64, compiler: g++ } - - { arch: znver4, sys: ucrt64, compiler: g++ } - - { arch: x86-64-v3, sys: clang64, compiler: clang++ } + - { arch: x86-64-v3, sys: mingw64, compiler: g++ } + - { arch: x86-64-v3, sys: ucrt64, compiler: g++ } + - { arch: znver4, sys: ucrt64, compiler: g++ } + - { arch: x86-64-v3, sys: clang64, compiler: clang++ } runs-on: windows-latest defaults: run: @@ -116,6 +132,10 @@ jobs: install: make cmake coreutils git pacboy: toolchain:p + - name: Upgrade Clang to latest (Windows/clang64) + if: matrix.compiler == 'clang++' + run: pacman -Syu --noconfirm mingw-w64-clang-x86_64-clang + - name: Obtain Reference Bench run: | benchref=$(git show -s --format=%B HEAD | sed '1!G;h;$!d' | grep -m 1 -o -x '[[:space:]]*\b[Bb]ench[ :]\+[1-9][0-9]*\b[[:space:]]*' | sed 's/[^0-9]//g') @@ -168,4 +188,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: clockwork-windows-${{ matrix.arch }} - path: clockwork-windows-${{ matrix.arch }}.exe + path: clockwork-windows-${{ matrix.arch }}.exe \ No newline at end of file