[llvm] [libc][ci] Add libc-shared-test CI for MSVC, ppc64le, and s390x. (PR #188553)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 25 20:46:35 PDT 2026


https://github.com/lntue updated https://github.com/llvm/llvm-project/pull/188553

>From 840b46cb4253072593a45cd29d586b4d0536b994 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 13:43:30 -0400
Subject: [PATCH 01/16] [libc][ci] Add libc-shared-test CI for MSVC, ppc64le,
 and s390x.

---
 .github/workflows/libc-shared-tests.yml | 69 +++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 .github/workflows/libc-shared-tests.yml

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
new file mode 100644
index 0000000000000..fd27d82cd6423
--- /dev/null
+++ b/.github/workflows/libc-shared-tests.yml
@@ -0,0 +1,69 @@
+name: libc Precommit CI - shared ßtests
+permissions:
+  contents: read
+on:
+  pull_request:
+    paths:
+      - 'libc/**'
+      - '.github/workflows/libc-shared-tests.yml'
+
+jobs:
+  # -------------------------------------------------------------
+  # Job 1: Windows Native (MSVC)
+  # -------------------------------------------------------------
+  windows-msvc-shared:
+    name: MSVC libc-shared-test
+    runs-on: windows-2022
+    steps:
+      - name: Checkout LLVM
+        uses: actions/checkout at v4
+
+      - name: Setup MSVC Dev Environment
+        uses: ilammy/msvc-dev-cmd at v1
+        with:
+          arch: x64
+
+      - name: Configure CMake
+        run: |
+          cmake -B build -S runtimes -G Ninja `
+            -DLLVM_ENABLE_RUNTIMES=libc `
+            -DCMAKE_C_COMPILER=cl `
+            -DCMAKE_CXX_COMPILER=cl `
+            -DCMAKE_BUILD_TYPE=Release
+
+      - name: Build and Test
+        run: cmake --build build --target libc-shared-test
+
+  # -------------------------------------------------------------
+  # Job 2: Linux Emulated (ppc64le & s390x)
+  # -------------------------------------------------------------
+  linux-cross-arch-shared:
+    name: Clang libc-shared-test (${{ matrix.arch }})
+    runs-on: ubuntu-24.04
+    strategy:
+      fail-fast: false # If one arch fails, let the other finish
+      matrix:
+        arch: [ppc64le, s390x]
+    
+    steps:
+      - name: Checkout LLVM
+        uses: actions/checkout at v4
+
+      # Uses QEMU and Docker to seamlessly run commands in an emulated architecture
+      - name: Build and Test in Emulated Container
+        uses: uraimo/run-on-arch-action at v2
+        with:
+          arch: ${{ matrix.arch }}
+          githubToken: ${{ github.token }}
+          install: |
+            apt-get update -y
+            apt-get install -y cmake ninja-build clang lld
+          run: |
+            # Using Clang inside the emulated Ubuntu container
+            cmake -B build -S runtimes -G Ninja \
+              -DLLVM_ENABLE_RUNTIMES=libc \
+              -DCMAKE_C_COMPILER=clang \
+              -DCMAKE_CXX_COMPILER=clang++ \
+              -DCMAKE_BUILD_TYPE=Release
+              
+            cmake --build build --target libc-shared-test

>From 33868827a957a86300958781a16f671cef4f6894 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 13:56:42 -0400
Subject: [PATCH 02/16] Pin versions and remove token.

---
 .github/workflows/libc-shared-tests.yml | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index fd27d82cd6423..073bb9178efa0 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -1,4 +1,4 @@
-name: libc Precommit CI - shared ßtests
+name: libc Precommit CI - shared tests
 permissions:
   contents: read
 on:
@@ -16,10 +16,10 @@ jobs:
     runs-on: windows-2022
     steps:
       - name: Checkout LLVM
-        uses: actions/checkout at v4
+        uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
 
       - name: Setup MSVC Dev Environment
-        uses: ilammy/msvc-dev-cmd at v1
+        uses: ilammy/msvc-dev-cmd at 0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
         with:
           arch: x64
 
@@ -47,14 +47,13 @@ jobs:
     
     steps:
       - name: Checkout LLVM
-        uses: actions/checkout at v4
+        uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
 
       # Uses QEMU and Docker to seamlessly run commands in an emulated architecture
       - name: Build and Test in Emulated Container
-        uses: uraimo/run-on-arch-action at v2
+        uses: uraimo/run-on-arch-action at d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1
         with:
           arch: ${{ matrix.arch }}
-          githubToken: ${{ github.token }}
           install: |
             apt-get update -y
             apt-get install -y cmake ninja-build clang lld

>From dca98432c71563bd4856946e7139df3ad7024899 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 14:06:36 -0400
Subject: [PATCH 03/16] Fix target name.

---
 .github/workflows/libc-shared-tests.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 073bb9178efa0..605d6cb970ca6 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -32,7 +32,7 @@ jobs:
             -DCMAKE_BUILD_TYPE=Release
 
       - name: Build and Test
-        run: cmake --build build --target libc-shared-test
+        run: cmake --build build --target libc-shared-tests
 
   # -------------------------------------------------------------
   # Job 2: Linux Emulated (ppc64le & s390x)
@@ -65,4 +65,4 @@ jobs:
               -DCMAKE_CXX_COMPILER=clang++ \
               -DCMAKE_BUILD_TYPE=Release
               
-            cmake --build build --target libc-shared-test
+            cmake --build build --target libc-shared-tests

>From bd384e79113f7eecf974e4a312afa69f0e16b5c3 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 18:25:11 -0400
Subject: [PATCH 04/16] Try different qemu setup.

---
 .github/workflows/libc-shared-tests.yml | 27 +++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 605d6cb970ca6..5e12b320f7c95 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -43,26 +43,37 @@ jobs:
     strategy:
       fail-fast: false # If one arch fails, let the other finish
       matrix:
-        arch: [ppc64le, s390x]
+        includes:
+        - arch: aarch64
+          libc: libc6-dev-aarch64-cross
+          libcpp: libstdc++14-dev-aarch64-cross
+          target_triple: aarch64-linux-gnu
+        - arch: riscv64
+          libc: libc6-dev-riscv64-cross
+          libcpp: libstdc++14-dev-riscv64-cross
+          target_triple: riscv64-linux-gnu
+        - arch: ppc64le
+          libc: libc6-dev-ppc64el-cross
+          libcpp: libstdc++14-dev-ppc64el-cross
+          target_triple: ppc64le-linux-gnu
     
     steps:
       - name: Checkout LLVM
         uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
 
-      # Uses QEMU and Docker to seamlessly run commands in an emulated architecture
-      - name: Build and Test in Emulated Container
-        uses: uraimo/run-on-arch-action at d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1
+      - name: Prepare dependencies
         with:
-          arch: ${{ matrix.arch }}
+          arch: x64
           install: |
             apt-get update -y
-            apt-get install -y cmake ninja-build clang lld
+            apt-get install -y cmake ninja-build clang lld qemu-user-static ${{ matrix.libc }} ${{ matrix.libcpp }}
           run: |
             # Using Clang inside the emulated Ubuntu container
-            cmake -B build -S runtimes -G Ninja \
+            cmake -B build -S llvm -G Ninja \
               -DLLVM_ENABLE_RUNTIMES=libc \
               -DCMAKE_C_COMPILER=clang \
               -DCMAKE_CXX_COMPILER=clang++ \
-              -DCMAKE_BUILD_TYPE=Release
+              -DCMAKE_BUILD_TYPE=Release \
+              -DLIBC_TARGET_TRIPLE=${{ target_triple }}
               
             cmake --build build --target libc-shared-tests

>From 5d54a27831bd31d5532ce3c4778fc7acf32b4c13 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 18:31:47 -0400
Subject: [PATCH 05/16] Fix include.

---
 .github/workflows/libc-shared-tests.yml | 30 ++++++++++++-------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 5e12b320f7c95..eb1a0c269a272 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -12,7 +12,7 @@ jobs:
   # Job 1: Windows Native (MSVC)
   # -------------------------------------------------------------
   windows-msvc-shared:
-    name: MSVC libc-shared-test
+    name: libc-shared-test with MSVC
     runs-on: windows-2022
     steps:
       - name: Checkout LLVM
@@ -38,24 +38,24 @@ jobs:
   # Job 2: Linux Emulated (ppc64le & s390x)
   # -------------------------------------------------------------
   linux-cross-arch-shared:
-    name: Clang libc-shared-test (${{ matrix.arch }})
+    name: libc-shared-tests on (${{ matrix.arch }})
     runs-on: ubuntu-24.04
     strategy:
       fail-fast: false # If one arch fails, let the other finish
       matrix:
-        includes:
-        - arch: aarch64
-          libc: libc6-dev-aarch64-cross
-          libcpp: libstdc++14-dev-aarch64-cross
-          target_triple: aarch64-linux-gnu
-        - arch: riscv64
-          libc: libc6-dev-riscv64-cross
-          libcpp: libstdc++14-dev-riscv64-cross
-          target_triple: riscv64-linux-gnu
-        - arch: ppc64le
-          libc: libc6-dev-ppc64el-cross
-          libcpp: libstdc++14-dev-ppc64el-cross
-          target_triple: ppc64le-linux-gnu
+        include:
+          - arch: aarch64
+            libc: libc6-dev-aarch64-cross
+            libcpp: libstdc++14-dev-aarch64-cross
+            target_triple: aarch64-linux-gnu
+          - arch: riscv64
+            libc: libc6-dev-riscv64-cross
+            libcpp: libstdc++14-dev-riscv64-cross
+            target_triple: riscv64-linux-gnu
+          - arch: ppc64le
+            libc: libc6-dev-ppc64el-cross
+            libcpp: libstdc++14-dev-ppc64el-cross
+            target_triple: ppc64le-linux-gnu
     
     steps:
       - name: Checkout LLVM

>From c248f0bc1086a563d4ba11a7206c8170a8ac6c2f Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 18:37:51 -0400
Subject: [PATCH 06/16] Update steps.

---
 .github/workflows/libc-shared-tests.yml | 31 +++++++++++++------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index eb1a0c269a272..d7002c03e0e7a 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -62,18 +62,19 @@ jobs:
         uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
 
       - name: Prepare dependencies
-        with:
-          arch: x64
-          install: |
-            apt-get update -y
-            apt-get install -y cmake ninja-build clang lld qemu-user-static ${{ matrix.libc }} ${{ matrix.libcpp }}
-          run: |
-            # Using Clang inside the emulated Ubuntu container
-            cmake -B build -S llvm -G Ninja \
-              -DLLVM_ENABLE_RUNTIMES=libc \
-              -DCMAKE_C_COMPILER=clang \
-              -DCMAKE_CXX_COMPILER=clang++ \
-              -DCMAKE_BUILD_TYPE=Release \
-              -DLIBC_TARGET_TRIPLE=${{ target_triple }}
-              
-            cmake --build build --target libc-shared-tests
+        run: |
+          apt-get update -y
+          apt-get install -y cmake ninja-build clang lld qemu-user-static ${{ matrix.libc }} ${{ matrix.libcpp }}
+      
+      - name: Configure CMake
+        run: |
+          cmake -B build -S llvm -G Ninja \
+            -DLLVM_ENABLE_RUNTIMES=libc \
+            -DCMAKE_C_COMPILER=clang \
+            -DCMAKE_CXX_COMPILER=clang++ \
+            -DCMAKE_BUILD_TYPE=Release \
+            -DLIBC_TARGET_TRIPLE=${{ target_triple }}
+
+      - name: Build and Run              
+        run: |
+          cmake --build build --target libc-shared-tests

>From 02151ce9b17f69d1fd024248ac03e655f0eee4e8 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 18:43:41 -0400
Subject: [PATCH 07/16] Fix target triple.

---
 .github/workflows/libc-shared-tests.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index d7002c03e0e7a..a4bccf12fa81c 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -73,7 +73,7 @@ jobs:
             -DCMAKE_C_COMPILER=clang \
             -DCMAKE_CXX_COMPILER=clang++ \
             -DCMAKE_BUILD_TYPE=Release \
-            -DLIBC_TARGET_TRIPLE=${{ target_triple }}
+            -DLIBC_TARGET_TRIPLE=${{ matrix.target_triple }}
 
       - name: Build and Run              
         run: |

>From 85f12038fff82d27a85d33c27f945d74ba27b5e4 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 18:47:14 -0400
Subject: [PATCH 08/16] Use sudo for apt-get.

---
 .github/workflows/libc-shared-tests.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index a4bccf12fa81c..d03f735c4a153 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -60,11 +60,13 @@ jobs:
     steps:
       - name: Checkout LLVM
         uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+        with:
+          persist-credentials: false
 
       - name: Prepare dependencies
         run: |
-          apt-get update -y
-          apt-get install -y cmake ninja-build clang lld qemu-user-static ${{ matrix.libc }} ${{ matrix.libcpp }}
+          sudo apt-get update -y
+          sudo apt-get install -y cmake ninja-build clang lld qemu-user-static ${{ matrix.libc }} ${{ matrix.libcpp }}
       
       - name: Configure CMake
         run: |

>From 864255474c787e2795a2a207810375d1b4069f31 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 18:51:40 -0400
Subject: [PATCH 09/16] Fix libstdc++.

---
 .github/workflows/libc-shared-tests.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index d03f735c4a153..0f2ad9cd0f21c 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -46,15 +46,15 @@ jobs:
         include:
           - arch: aarch64
             libc: libc6-dev-aarch64-cross
-            libcpp: libstdc++14-dev-aarch64-cross
+            libcpp: libstdc++6-dev-aarch64-cross
             target_triple: aarch64-linux-gnu
           - arch: riscv64
             libc: libc6-dev-riscv64-cross
-            libcpp: libstdc++14-dev-riscv64-cross
+            libcpp: libstdc++6-dev-riscv64-cross
             target_triple: riscv64-linux-gnu
           - arch: ppc64le
             libc: libc6-dev-ppc64el-cross
-            libcpp: libstdc++14-dev-ppc64el-cross
+            libcpp: libstdc++6-dev-ppc64el-cross
             target_triple: ppc64le-linux-gnu
     
     steps:

>From 447ecf236b8bde0197925c6dcf76f9ee0bcb821d Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 19:00:51 -0400
Subject: [PATCH 10/16] Fix libc and libstdc++ packages.

---
 .github/workflows/libc-shared-tests.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 0f2ad9cd0f21c..60caef601f924 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -17,6 +17,8 @@ jobs:
     steps:
       - name: Checkout LLVM
         uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+        with:
+          persist-credentials: false
 
       - name: Setup MSVC Dev Environment
         uses: ilammy/msvc-dev-cmd at 0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
@@ -45,16 +47,16 @@ jobs:
       matrix:
         include:
           - arch: aarch64
-            libc: libc6-dev-aarch64-cross
-            libcpp: libstdc++6-dev-aarch64-cross
+            libc: libc6-dev-arm64-cross
+            libcpp: libstdc++6-arm64-cross
             target_triple: aarch64-linux-gnu
           - arch: riscv64
             libc: libc6-dev-riscv64-cross
-            libcpp: libstdc++6-dev-riscv64-cross
+            libcpp: libstdc++6-riscv64-cross
             target_triple: riscv64-linux-gnu
           - arch: ppc64le
             libc: libc6-dev-ppc64el-cross
-            libcpp: libstdc++6-dev-ppc64el-cross
+            libcpp: libstdc++6-ppc64el-cross
             target_triple: ppc64le-linux-gnu
     
     steps:

>From fdcfb43aa1004f47fee059db677fda7b6df19fb2 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 19:44:17 -0400
Subject: [PATCH 11/16] Use runtimes folder.

---
 .github/workflows/libc-shared-tests.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 60caef601f924..71cabfc5f2ecf 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -72,7 +72,7 @@ jobs:
       
       - name: Configure CMake
         run: |
-          cmake -B build -S llvm -G Ninja \
+          cmake -B build -S runtimes -G Ninja \
             -DLLVM_ENABLE_RUNTIMES=libc \
             -DCMAKE_C_COMPILER=clang \
             -DCMAKE_CXX_COMPILER=clang++ \

>From daa129c66019980fc614ef5bd9b872f7835ee456 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 20:36:16 -0400
Subject: [PATCH 12/16] Add gcc and g++.

---
 .github/workflows/libc-shared-tests.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 71cabfc5f2ecf..90a613bf289b6 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -68,7 +68,9 @@ jobs:
       - name: Prepare dependencies
         run: |
           sudo apt-get update -y
-          sudo apt-get install -y cmake ninja-build clang lld qemu-user-static ${{ matrix.libc }} ${{ matrix.libcpp }}
+          sudo apt-get install -y cmake ninja-build clang lld qemu-user-static \
+            ${{ matrix.libc }} ${{ matrix.libcpp }} \
+            gcc-$${{ matrix.target_triple }} g++-$${{ matrix.target_triple }}
       
       - name: Configure CMake
         run: |

>From c87c195416360ef6f7e9befa923379bcd89dee37 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 20:41:08 -0400
Subject: [PATCH 13/16] Remove extra $ sign.

---
 .github/workflows/libc-shared-tests.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 90a613bf289b6..13e32d3d55f33 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -70,7 +70,7 @@ jobs:
           sudo apt-get update -y
           sudo apt-get install -y cmake ninja-build clang lld qemu-user-static \
             ${{ matrix.libc }} ${{ matrix.libcpp }} \
-            gcc-$${{ matrix.target_triple }} g++-$${{ matrix.target_triple }}
+            gcc-${{ matrix.target_triple }} g++-${{ matrix.target_triple }}
       
       - name: Configure CMake
         run: |

>From 26d257104dde143607497d2069805ab7579a4d37 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 20:51:50 -0400
Subject: [PATCH 14/16] Add QEMU_LD_PREFIX.

---
 .github/workflows/libc-shared-tests.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 13e32d3d55f33..a810b0449d7ec 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -58,7 +58,7 @@ jobs:
             libc: libc6-dev-ppc64el-cross
             libcpp: libstdc++6-ppc64el-cross
             target_triple: ppc64le-linux-gnu
-    
+
     steps:
       - name: Checkout LLVM
         uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -71,7 +71,7 @@ jobs:
           sudo apt-get install -y cmake ninja-build clang lld qemu-user-static \
             ${{ matrix.libc }} ${{ matrix.libcpp }} \
             gcc-${{ matrix.target_triple }} g++-${{ matrix.target_triple }}
-      
+
       - name: Configure CMake
         run: |
           cmake -B build -S runtimes -G Ninja \
@@ -81,6 +81,8 @@ jobs:
             -DCMAKE_BUILD_TYPE=Release \
             -DLIBC_TARGET_TRIPLE=${{ matrix.target_triple }}
 
-      - name: Build and Run              
+      - name: Build and Run
+        env:
+          QEMU_LD_PREFIX: /usr/${{ matrix.target_triple }}
         run: |
           cmake --build build --target libc-shared-tests

>From d3dbc98fc6be82158c82251b4ecc4fee0410d954 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 21:00:00 -0400
Subject: [PATCH 15/16] Fix powerpc64le target triple.

---
 .github/workflows/libc-shared-tests.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index a810b0449d7ec..690234589e4e7 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -50,14 +50,16 @@ jobs:
             libc: libc6-dev-arm64-cross
             libcpp: libstdc++6-arm64-cross
             target_triple: aarch64-linux-gnu
+            gcc_arch: aarch64-linux-gnu
           - arch: riscv64
             libc: libc6-dev-riscv64-cross
             libcpp: libstdc++6-riscv64-cross
             target_triple: riscv64-linux-gnu
-          - arch: ppc64le
+            gcc_arch: riscv64-linux-gnu
+          - arch: powerpc64le
             libc: libc6-dev-ppc64el-cross
             libcpp: libstdc++6-ppc64el-cross
-            target_triple: ppc64le-linux-gnu
+            target_triple: powerpc64le-linux-gnu
 
     steps:
       - name: Checkout LLVM

>From 18925da22a52f83da800ef0d064c0d2dbceac21a Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Wed, 25 Mar 2026 23:45:57 -0400
Subject: [PATCH 16/16] Try different Windows architectures.

---
 .github/workflows/libc-shared-tests.yml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/libc-shared-tests.yml b/.github/workflows/libc-shared-tests.yml
index 690234589e4e7..9dddda160f40d 100644
--- a/.github/workflows/libc-shared-tests.yml
+++ b/.github/workflows/libc-shared-tests.yml
@@ -12,8 +12,19 @@ jobs:
   # Job 1: Windows Native (MSVC)
   # -------------------------------------------------------------
   windows-msvc-shared:
-    name: libc-shared-test with MSVC
-    runs-on: windows-2022
+    name: libc-shared-test with MSVC (${{ matrix.arch }})
+    strategy:
+      fail-fast: false # If one arch fails, let the other finish
+      matrix:
+        - arch: amd64
+          os: windows-latest
+        - arch: amd64_x86
+          os: windows-latest
+        - arch: arm64
+          os: windows-11-arm
+
+    runs-on: ${{ matrix.os }}
+
     steps:
       - name: Checkout LLVM
         uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -23,7 +34,7 @@ jobs:
       - name: Setup MSVC Dev Environment
         uses: ilammy/msvc-dev-cmd at 0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
         with:
-          arch: x64
+          arch: ${{ matrix.arch }}
 
       - name: Configure CMake
         run: |



More information about the llvm-commits mailing list