Skip to content

Commit

Permalink
workflow to exhaustively test supported LLVM versions
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Oct 1, 2024
1 parent a4efff5 commit 9c0657c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/llvm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Exhaustive LLVM Build

on:
workflow_dispatch:
push:

permissions:
contents: read

jobs:
doit:
name: 'Build & Test (${{matrix.version}})'
strategy:
fail-fast: false
matrix:
version: ['10.0.1', '11.1.0']
runs-on: ["self-hosted", "enf-x86-beefy"]
container: ubuntu:jammy
steps:
- name: Install packages
run: |
apt-get update && apt-get -y upgrade
apt-get install -y build-essential cmake git libcurl4-openssl-dev libgmp-dev ninja-build python3 zlib1g-dev
- name: Clone LLVM
run: git clone -b llvmorg-${{matrix.version}} --recursive https://github.com/llvm/llvm-project
- name: Build LLVM
run: |
cmake -S llvm-project/llvm -B llvm-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host -DLLVM_BUILD_TOOLS=Off \
-DLLVM_ENABLE_RTTI=On -DLLVM_ENABLE_TERMINFO=Off -DCMAKE_INSTALL_PREFIX=/usr
cmake --build llvm-build -t install
rm -rf llvm-*
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build spring
run: |
cmake -S spring -B build -DCMAKE_BUILD_TYPE=Release -GNinja
cmake --build build
- name: Test spring
run: ctest --test-dir build/ -j $(nproc) --output-on-failure -LE "(nonparallelizable_tests|long_running_tests)" --timeout 480

0 comments on commit 9c0657c

Please sign in to comment.