[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
This commit is contained in:
parent
720066abc2
commit
8bbb5a875c
1 changed files with 8 additions and 7 deletions
15
.github/workflows/release-llvm-testing-tools.yml
vendored
15
.github/workflows/release-llvm-testing-tools.yml
vendored
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue