Skip to content

Fix llvm::Intrinsic::getDeclaration error on newer LLVM versions #332

Fix llvm::Intrinsic::getDeclaration error on newer LLVM versions

Fix llvm::Intrinsic::getDeclaration error on newer LLVM versions #332

Workflow file for this run

name: ProXPL CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
permissions:
contents: read
env:
BUILD_TYPE: Release
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
bin_path: |
build/proxpl
build/prm
- os: macos-latest
bin_path: |
build/proxpl
build/prm
- os: windows-latest
bin_path: build/ProXPL_Installer_*.exe
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Install LLVM (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y llvm-dev libclang-dev clang
- name: Install LLVM (macOS)
if: matrix.os == 'macos-latest'
run: |
brew install llvm
echo "CMAKE_PREFIX_PATH=$(brew --prefix llvm)" >> $GITHUB_ENV
- name: Install Ninja (Windows)
if: matrix.os == 'windows-latest'
run: choco install ninja -y
- name: Configure (Unix)
if: matrix.os != 'windows-latest'
shell: bash
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DBUILD_TESTS=OFF \
-DBUILD_BENCH=OFF
- name: Configure (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
cmake -S . -B build `
-G "Ninja" `
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} `
-DBUILD_TESTS=OFF `
-DBUILD_BENCH=OFF
- name: Build
shell: bash
run: cmake --build build --config Release --verbose
- name: Run Benchmarks
shell: bash
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
EXE_PATH="build/proxpl.exe"
else
EXE_PATH="build/proxpl"
fi
echo "Running benchmarks with $EXE_PATH"
python benchmarks/run_benchmarks.py --executable "$EXE_PATH"
- name: Build Installer (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
choco install innosetup -y
New-Item -ItemType Directory -Force -Path bin
Copy-Item "build/proxpl.exe" -Destination "bin/"
Copy-Item "build/prm.exe" -Destination "bin/"
if (Test-Path "build/proxpl_lib.dll") {
Copy-Item "build/proxpl_lib.dll" -Destination "bin/"
}
iscc setup.iss
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ProXPL-v1.2.0-${{ matrix.os }}
# UPDATED: This will now upload the .exe and the .dll for Windows
# For Linux/Mac, it still uploads the single binary.
path: |
${{ matrix.bin_path }}
benchmarks/