blob: 7910b23a6b85352fcdad2bc70274889d0360d7c3 [file] [edit]
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: packages
path: ./llvm/utils/llvm-testing-tools/dist/*