public inbox for gwml@vger.gnuweeb.org
 help / color / mirror / Atom feed
From: Ammar Faizi <ammarfaizi2@gnuweeb.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: Ammar Faizi <ammarfaizi2@gnuweeb.org>,
	io-uring Mailing List <io-uring@vger.kernel.org>,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>,
	Christian Mazakas <christian.mazakas@gmail.com>
Subject: [PATCH liburing] github: Upgrade clang version to 22
Date: Mon, 16 Feb 2026 01:16:12 +0700	[thread overview]
Message-ID: <20260215181612.1941963-1-ammarfaizi2@gnuweeb.org> (raw)

Commit 5cb44fe56b58 ("workflows/build.yml: install default ubuntu-24.04
clang") downgraded the CI to the Ubuntu 24.04 default Clang (v18). As
noted by @cmazakas, it was because it broke bindgen.

@cmazakas recently confirmed that Clang 22 does not suffer from this
bindgen incompatibility. Therefore, upgrade the environment to Clang 22
to gain access to the latest static analysis tooling.

Acked-by: Christian Mazakas <christian.mazakas@gmail.com>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
---
 .github/workflows/ci.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8f008b94eeaa..83669e131d2d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -196,8 +196,15 @@ jobs:
 
       - name: Install Compilers
         run: |
-          sudo apt-get update -y;
-          sudo apt-get install -y ${{matrix.build_args.cc_pkg}} ${{matrix.build_args.cxx_pkg}};
+          if [[ "${{matrix.cc_pkg}}" == "clang" ]]; then \
+            wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh; \
+            sudo bash /tmp/llvm.sh 22; \
+            sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-22 400; \
+            sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-22 400; \
+          else \
+            sudo apt-get update -y; \
+            sudo apt-get install -y ${{matrix.build_args.cc_pkg}} ${{matrix.build_args.cxx_pkg}}; \
+          fi;
 
       - name: Display compiler versions
         run: |

base-commit: 364a7b561fa13cffdd7771978dc5509ec4d9d7f9
-- 
Ammar Faizi


             reply	other threads:[~2026-02-15 18:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-15 18:16 Ammar Faizi [this message]
2026-02-15 23:55 ` [PATCH liburing] github: Upgrade clang version to 22 Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260215181612.1941963-1-ammarfaizi2@gnuweeb.org \
    --to=ammarfaizi2@gnuweeb.org \
    --cc=axboe@kernel.dk \
    --cc=christian.mazakas@gmail.com \
    --cc=gwml@vger.gnuweeb.org \
    --cc=io-uring@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox