From 8bbb5a875cbc0a5bf6c43b60a7de680ea20715da Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Thu, 9 Jul 2026 20:32:25 +0000 Subject: [PATCH] [Github][TestingTools] Build on multiple platforms Given we are shipping binaries, the produced packages are arch-specific so we need to build/cross-compile on all the architectures that we care about. Start by getting things working on latest MacOS and Windows. Reviewers: Michael137, ldionne Pull Request: https://github.com/llvm/llvm-project/pull/190884 --- .github/workflows/release-llvm-testing-tools.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-llvm-testing-tools.yml b/.github/workflows/release-llvm-testing-tools.yml index 7910b23a6b85..ecbec7c3891c 100644 --- a/.github/workflows/release-llvm-testing-tools.yml +++ b/.github/workflows/release-llvm-testing-tools.yml @@ -12,7 +12,10 @@ on: jobs: build-package: name: Build Package - runs-on: ubuntu-24.04 + strategy: + matrix: + os: [ubuntu-24.04, windows-2025, macos-26] + runs-on: ${{ matrix.os }} if: github.repository == 'llvm/llvm-project' steps: - name: Fetch LLVM sources @@ -23,14 +26,12 @@ 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 + shell: bash 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 @@ -39,5 +40,5 @@ jobs: - name: Upload Packages uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: packages + name: packages-${{ matrix.os }} path: ./llvm/utils/llvm-testing-tools/dist/*