[llvm] [Github][TestingTools] Build on multiple platforms (PR #190884)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 08:55:51 PDT 2026
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/190884
>From f9c7f22e901ba723e70b9c30e873f31dad86085e Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 8 Apr 2026 02:01:54 +0000
Subject: [PATCH 1/6] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20ch?=
=?UTF-8?q?anges=20to=20main=20this=20commit=20is=20based=20on?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
[skip ci]
---
.../workflows/release-llvm-testing-tools.yml | 43 +++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 .github/workflows/release-llvm-testing-tools.yml
diff --git a/.github/workflows/release-llvm-testing-tools.yml b/.github/workflows/release-llvm-testing-tools.yml
new file mode 100644
index 0000000000000..7c285bc05fdd7
--- /dev/null
+++ b/.github/workflows/release-llvm-testing-tools.yml
@@ -0,0 +1,43 @@
+name: Release llvm-testing-tools
+
+permissions:
+ contents: read
+
+on:
+ pull_request:
+ paths:
+ - '.github/workflows/release-llvm-testing-tools.yml'
+ - 'llvm/utils/llvm-testing-tools/**'
+
+jobs:
+ build-package:
+ name: Build Package
+ runs-on: ubuntu-24.04
+ if: github.repository == 'llvm/llvm-project'
+ steps:
+ - name: Fetch LLVM sources
+ uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+ with:
+ persist-credentials: false
+ - name: Build Binaries
+ run: |
+ mkdir build
+ cd build
+ cmake -GNinja \
+ -DCMAKE_BUILD_TYPE=Release \
+ ../llvm
+ ninja split-file FileCheck
+ - name: Build Package
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y python3-build
+ cd ./llvm/utils/llvm-testing-tools
+ mkdir ./src/llvm_testing_tools/binaries
+ cp ../../../build/bin/FileCheck ./src/llvm_testing_tools/binaries/FileCheck
+ cp ../../../build/bin/split-file ./src/llvm_testing_tools/binaries/split-file
+ python3 -m build
+ - name: Upload Packages
+ uses: actions/upload-artifact at bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
+ with:
+ name: packages
+ path: ./llvm/utils/llvm-testing-tools/dist/*
>From 69ede61447e11ac9edb9f912ba302a65ae3e8ec4 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 8 Apr 2026 02:05:12 +0000
Subject: [PATCH 2/6] windows fix
Created using spr 1.3.7
---
.github/workflows/release-llvm-testing-tools.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/release-llvm-testing-tools.yml b/.github/workflows/release-llvm-testing-tools.yml
index e265a4777afc5..733b304143efa 100644
--- a/.github/workflows/release-llvm-testing-tools.yml
+++ b/.github/workflows/release-llvm-testing-tools.yml
@@ -26,8 +26,8 @@ jobs:
run: |
mkdir build
cd build
- cmake -GNinja \
- -DCMAKE_BUILD_TYPE=Release \
+ cmake -GNinja `
+ -DCMAKE_BUILD_TYPE=Release `
../llvm
ninja split-file FileCheck
- name: Build Package
>From 4a26972bc241e84fb21b5743eaae2e7f136a53a6 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 8 Apr 2026 02:08:32 +0000
Subject: [PATCH 3/6] actual windows fix
Created using spr 1.3.7
---
.github/workflows/release-llvm-testing-tools.yml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.github/workflows/release-llvm-testing-tools.yml b/.github/workflows/release-llvm-testing-tools.yml
index 733b304143efa..823d6b57df2cf 100644
--- a/.github/workflows/release-llvm-testing-tools.yml
+++ b/.github/workflows/release-llvm-testing-tools.yml
@@ -26,9 +26,7 @@ jobs:
run: |
mkdir build
cd build
- cmake -GNinja `
- -DCMAKE_BUILD_TYPE=Release `
- ../llvm
+ cmake -GNinja -DCMAKE_BUILD_TYPE=Release ../llvm
ninja split-file FileCheck
- name: Build Package
run: |
>From f0bb7aee0d1f2519d3d8155838d09e875ea693b9 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 8 Apr 2026 02:13:04 +0000
Subject: [PATCH 4/6] no ubuntu
Created using spr 1.3.7
---
.github/workflows/release-llvm-testing-tools.yml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/release-llvm-testing-tools.yml b/.github/workflows/release-llvm-testing-tools.yml
index 823d6b57df2cf..02ffa1dac217b 100644
--- a/.github/workflows/release-llvm-testing-tools.yml
+++ b/.github/workflows/release-llvm-testing-tools.yml
@@ -30,8 +30,7 @@ jobs:
ninja split-file FileCheck
- name: Build Package
run: |
- sudo apt-get update
- sudo apt-get install -y python3-build
+ pip3 install --break-system-packages build==1.4.2
cd ./llvm/utils/llvm-testing-tools
mkdir ./src/llvm_testing_tools/binaries
cp ../../../build/bin/FileCheck ./src/llvm_testing_tools/binaries/FileCheck
>From e33ae32bf0fc294340158b148fba1a643b76549a Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 8 Apr 2026 02:16:30 +0000
Subject: [PATCH 5/6] fix package upload
Created using spr 1.3.7
---
.github/workflows/release-llvm-testing-tools.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/release-llvm-testing-tools.yml b/.github/workflows/release-llvm-testing-tools.yml
index 02ffa1dac217b..afd52d3a0408a 100644
--- a/.github/workflows/release-llvm-testing-tools.yml
+++ b/.github/workflows/release-llvm-testing-tools.yml
@@ -39,5 +39,5 @@ jobs:
- name: Upload Packages
uses: actions/upload-artifact at bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
- name: packages
+ name: packages-${{ matrix.os }}
path: ./llvm/utils/llvm-testing-tools/dist/*
>From fdfa62705069e5b829491db8290fe21d0561915f Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Thu, 9 Apr 2026 01:37:16 +0000
Subject: [PATCH 6/6] update
Created using spr 1.3.7
---
.github/workflows/release-llvm-testing-tools.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/release-llvm-testing-tools.yml b/.github/workflows/release-llvm-testing-tools.yml
index afd52d3a0408a..f5b668b7f4a32 100644
--- a/.github/workflows/release-llvm-testing-tools.yml
+++ b/.github/workflows/release-llvm-testing-tools.yml
@@ -29,6 +29,7 @@ jobs:
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ../llvm
ninja split-file FileCheck
- name: Build Package
+ shell: bash
run: |
pip3 install --break-system-packages build==1.4.2
cd ./llvm/utils/llvm-testing-tools
More information about the llvm-commits
mailing list