Skip to content

Add CI testing

Add CI testing #64

Workflow file for this run

name: Test
on: [pull_request, merge_group]
jobs:
test-ubuntu-24-04:
name: Ubuntu 24.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Install Toolchain
run: |
sudo apt-get update
sudo apt-get -y install {gcc,g++}-{9,10,11,12,13,14,mingw-w64-x86-64} clang-{14,15,16,17,18} ninja-build
conda create -y --name cuda-env
conda install -y --name cuda-env cuda-minimal-build
rm -f "$CONDA/envs/cuda-env/bin/ld"
- name: Build (GCC 9)
run: |
cd tests
mkdir build-gcc-9
cd build-gcc-9
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 10)
run: |
cd tests
mkdir build-gcc-10
cd build-gcc-10
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 11)
run: |
cd tests
mkdir build-gcc-11
cd build-gcc-11
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 12)
run: |
cd tests
mkdir build-gcc-12
cd build-gcc-12
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 13)
run: |
cd tests
mkdir build-gcc-13
cd build-gcc-13
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 14)
run: |
cd tests
mkdir build-clang-14
cd build-clang-14
cmake -G Ninja -DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 15)
run: |
cd tests
mkdir build-clang-15
cd build-clang-15
cmake -G Ninja -DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 16)
run: |
cd tests
mkdir build-clang-16
cd build-clang-16
cmake -G Ninja -DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 17)
run: |
cd tests
mkdir build-clang-17
cd build-clang-17
cmake -G Ninja -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (MinGW-w64 GCC)
run: |
cd tests
mkdir build-mingw
cd build-mingw
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=../mingw-w64-x86_64.cmake -DENABLE_CUDA=False ..
ninja
- name: Run (GCC 9)
run: |
cd tests/build-gcc-9
ctest -V
- name: Run (GCC 10)
run: |
cd tests/build-gcc-10
ctest -V
- name: Run (GCC 11)
run: |
cd tests/build-gcc-11
ctest -V
- name: Run (GCC 12)
run: |
cd tests/build-gcc-12
ctest -V
- name: Run (GCC 13)
run: |
cd tests/build-gcc-13
ctest -V
- name: Run (Clang 14)
run: |
cd tests/build-clang-14
ctest -V
- name: Run (Clang 15)
run: |
cd tests/build-clang-15
ctest -V
- name: Run (Clang 16)
run: |
cd tests/build-clang-16
ctest -V
- name: Run (Clang 17)
run: |
cd tests/build-clang-17
ctest -V
test-ubuntu-22-04:
name: Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Install Toolchain
run: |
sudo apt-get update
sudo apt-get -y install {gcc,g++}-{9,10,11,12,mingw-w64-x86-64} clang-{11,12,13,14,15} ninja-build
conda create -y --name cuda-env
conda install -y --name cuda-env cuda-minimal-build
rm -f "$CONDA/envs/cuda-env/bin/ld"
- name: Build (GCC 9)
run: |
cd tests
mkdir build-gcc-9
cd build-gcc-9
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 10)
run: |
cd tests
mkdir build-gcc-10
cd build-gcc-10
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 11)
run: |
cd tests
mkdir build-gcc-11
cd build-gcc-11
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 12)
run: |
cd tests
mkdir build-gcc-12
cd build-gcc-12
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 11)
run: |
cd tests
mkdir build-clang-11
cd build-clang-11
cmake -G Ninja -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 12)
run: |
cd tests
mkdir build-clang-12
cd build-clang-12
cmake -G Ninja -DCMAKE_C_COMPILER=clang-12 -DCMAKE_CXX_COMPILER=clang++-12 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 13)
run: |
cd tests
mkdir build-clang-13
cd build-clang-13
cmake -G Ninja -DCMAKE_C_COMPILER=clang-13 -DCMAKE_CXX_COMPILER=clang++-13 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 14)
run: |
cd tests
mkdir build-clang-14
cd build-clang-14
cmake -G Ninja -DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 15)
run: |
cd tests
mkdir build-clang-15
cd build-clang-15
cmake -G Ninja -DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (MinGW-w64 GCC)
run: |
cd tests
mkdir build-mingw
cd build-mingw
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=../mingw-w64-x86_64.cmake -DENABLE_CUDA=False ..
ninja
- name: Run (GCC 9)
run: |
cd tests/build-gcc-9
ctest -V
- name: Run (GCC 10)
run: |
cd tests/build-gcc-10
ctest -V
- name: Run (GCC 11)
run: |
cd tests/build-gcc-11
ctest -V
- name: Run (GCC 12)
run: |
cd tests/build-gcc-12
ctest -V
- name: Run (Clang 11)
run: |
cd tests/build-clang-11
ctest -V
- name: Run (Clang 12)
run: |
cd tests/build-clang-12
ctest -V
- name: Run (Clang 13)
run: |
cd tests/build-clang-13
ctest -V
- name: Run (Clang 14)
run: |
cd tests/build-clang-14
ctest -V
- name: Run (Clang 15)
run: |
cd tests/build-clang-15
ctest -V
test-ubuntu-20-04:
name: Ubuntu 20.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Install Toolchain
run: |
sudo apt-get update
sudo apt-get -y install {gcc,g++}-{7,8,9,10,mingw-w64-x86-64} clang-{7,8,9,10,11,12} ninja-build
conda create -y --name cuda-env
conda install -y --name cuda-env cuda-minimal-build
rm -f "$CONDA/envs/cuda-env/bin/ld"
- name: Build (GCC 7)
run: |
cd tests
mkdir build-gcc-7
cd build-gcc-7
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 8)
run: |
cd tests
mkdir build-gcc-8
cd build-gcc-8
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 9)
run: |
cd tests
mkdir build-gcc-9
cd build-gcc-9
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (GCC 10)
run: |
cd tests
mkdir build-gcc-10
cd build-gcc-10
cmake -G Ninja -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 7)
run: |
cd tests
mkdir build-clang-7
cd build-clang-7
cmake -G Ninja -DCMAKE_C_COMPILER=clang-7 -DCMAKE_CXX_COMPILER=clang++-7 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 8)
run: |
cd tests
mkdir build-clang-8
cd build-clang-8
cmake -G Ninja -DCMAKE_C_COMPILER=clang-8 -DCMAKE_CXX_COMPILER=clang++-8 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 9)
run: |
cd tests
mkdir build-clang-9
cd build-clang-9
cmake -G Ninja -DCMAKE_C_COMPILER=clang-9 -DCMAKE_CXX_COMPILER=clang++-9 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 10)
run: |
cd tests
mkdir build-clang-10
cd build-clang-10
cmake -G Ninja -DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 11)
run: |
cd tests
mkdir build-clang-11
cd build-clang-11
cmake -G Ninja -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (Clang 12)
run: |
cd tests
mkdir build-clang-12
cd build-clang-12
cmake -G Ninja -DCMAKE_C_COMPILER=clang-12 -DCMAKE_CXX_COMPILER=clang++-12 -DCMAKE_CUDA_COMPILER="$CONDA/envs/cuda-env/bin/nvcc" ..
ninja
- name: Build (MinGW-w64 GCC)
run: |
cd tests
mkdir build-mingw
cd build-mingw
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=../mingw-w64-x86_64.cmake -DENABLE_CUDA=False ..
ninja
- name: Run (GCC 7)
run: |
cd tests/build-gcc-7
ctest -V
- name: Run (GCC 8)
run: |
cd tests/build-gcc-8
ctest -V
- name: Run (GCC 9)
run: |
cd tests/build-gcc-9
ctest -V
- name: Run (GCC 10)
run: |
cd tests/build-gcc-10
ctest -V
- name: Run (Clang 7)
run: |
cd tests/build-clang-7
ctest -V
- name: Run (Clang 8)
run: |
cd tests/build-clang-8
ctest -V
- name: Run (Clang 9)
run: |
cd tests/build-clang-9
ctest -V
- name: Run (Clang 10)
run: |
cd tests/build-clang-10
ctest -V
- name: Run (Clang 11)
run: |
cd tests/build-clang-11
ctest -V
- name: Run (Clang 12)
run: |
cd tests/build-clang-12
ctest -V
test-windows-2022:
name: Windows Server 2022
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Conda - Create Environment
shell: cmd
run: |
conda create -y --name cuda-env
- name: Conda - Install CUDA Toolchain
shell: cmd
run: |
conda install -y --name cuda-env cuda-minimal-build
- name: Build (VS 2022)
shell: cmd
run: |
cd tests
mkdir build-vs
cd build-vs
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -G Ninja -DCMAKE_CUDA_COMPILER="%CONDA:\=/%/envs/cuda-env/Library/bin/nvcc.exe" .. && ninja
- name: Build (Clang-CL)
shell: cmd
run: |
cd tests
mkdir build-clang-cl
cd build-clang-cl
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -G Ninja -DCMAKE_C_COMPILER="%ProgramFiles:\=/%/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe" -DCMAKE_CXX_COMPILER="%ProgramFiles:\=/%/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe" -DCMAKE_LINKER="%ProgramFiles:\=/%/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/lld-link.exe" -DENABLE_CUDA=False .. && ninja
- name: Build (LLVM Clang)
shell: cmd
run: |
cd tests
mkdir build-llvm-clang
cd build-llvm-clang
"%ProgramFiles%\CMake\bin\cmake.exe" -G Ninja -DCMAKE_MAKE_PROGRAM="%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe" -DCMAKE_C_COMPILER="%ProgramFiles%/LLVM/bin/clang.exe" -DCMAKE_CXX_COMPILER="%ProgramFiles%/LLVM/bin/clang++.exe" -DCMAKE_LINKER="%ProgramFiles%/LLVM/bin/lld.exe" -DENABLE_CUDA=False ..
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
- name: Build (VS 2022 Arm64)
shell: cmd
run: |
cd tests
mkdir build-vs-arm64
cd build-vs-arm64
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_arm64.bat" && "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -G Ninja -DENABLE_CUDA=False .. && ninja
- name: Run (VS 2022)
shell: cmd
run: |
cd tests/build-vs
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\ctest.exe" -V
- name: Run (Clang-CL)
shell: cmd
run: |
cd tests/build-clang-cl
"%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\ctest.exe" -V
- name: Run (LLVM Clang)
shell: cmd
run: |
cd tests/build-llvm-clang
"%ProgramFiles%\CMake\bin\ctest.exe" -V
test-windows-2019:
name: Windows Server 2019
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Conda - Create Environment
shell: cmd
run: |
conda create -y --name cuda-env
- name: Conda - Install CUDA Toolchain
shell: cmd
run: |
conda install -y --name cuda-env cuda-minimal-build
- name: Build (VS 2019)
shell: cmd
run: |
cd tests
mkdir build-vs
cd build-vs
"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -G Ninja -DCMAKE_CUDA_COMPILER="%CONDA:\=/%/envs/cuda-env/Library/bin/nvcc.exe" .. && ninja
- name: Build (Clang-CL)
shell: cmd
run: |
cd tests
mkdir build-clang-cl
cd build-clang-cl
"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -G Ninja -DCMAKE_C_COMPILER="%ProgramFiles(x86):\=/%/Microsoft Visual Studio/2019/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe" -DCMAKE_CXX_COMPILER="%ProgramFiles(x86):\=/%/Microsoft Visual Studio/2019/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe" -DCMAKE_LINKER="%ProgramFiles(x86):\=/%/Microsoft Visual Studio/2019/Enterprise/VC/Tools/Llvm/x64/bin/lld-link.exe" -DENABLE_CUDA=False .. && ninja
- name: Build (LLVM Clang)
shell: cmd
run: |
cd tests
mkdir build-llvm-clang
cd build-llvm-clang
"%ProgramFiles%\CMake\bin\cmake.exe" -G Ninja -DCMAKE_MAKE_PROGRAM="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe" -DCMAKE_C_COMPILER="%ProgramFiles%/LLVM/bin/clang.exe" -DCMAKE_CXX_COMPILER="%ProgramFiles%/LLVM/bin/clang++.exe" -DCMAKE_LINKER="%ProgramFiles%/LLVM/bin/lld.exe" -DENABLE_CUDA=False ..
"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
- name: Build (VS 2019 Arm64)
shell: cmd
run: |
cd tests
mkdir build-vs-arm64
cd build-vs-arm64
"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsamd64_arm64.bat" && "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -G Ninja -DENABLE_CUDA=False .. && ninja
- name: Run (VS 2019)
shell: cmd
run: |
cd tests/build-vs
"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\ctest.exe" -V
- name: Run (Clang-CL)
shell: cmd
run: |
cd tests/build-clang-cl
"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\ctest.exe" -V
- name: Run (LLVM Clang)
shell: cmd
run: |
cd tests/build-llvm-clang
"%ProgramFiles%\CMake\bin\ctest.exe" -V
test-macos-13:
name: macOS 13
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Install Toolchain
run: |
brew install --force-bottle ninja llvm lld mingw-w64
- name: Build (Apple Clang)
run: |
cd tests
mkdir build-appleclang
cd build-appleclang
cmake -G Ninja ..
ninja
- name: Build (GCC)
run: |
cd tests
mkdir build-gcc
cd build-gcc
GCC_VERSION="$(brew list --versions gcc | cut '-d ' -f2 | cut '-d.' -f1)"
cmake -G Ninja -DCMAKE_C_COMPILER="gcc-$GCC_VERSION" -DCMAKE_CXX_COMPILER="g++-$GCC_VERSION" ..
ninja
- name: Build (Clang)
run: |
cd tests
mkdir build-clang
cd build-clang
export PATH="/usr/local/opt/llvm/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/llvm/lib"
export CPPFLAGS="-I/usr/local/opt/llvm/include"
cmake -G Ninja -DCMAKE_C_COMPILER="/usr/local/opt/llvm/bin/clang" -DCMAKE_CXX_COMPILER="/usr/local/opt/llvm/bin/clang++" -DCMAKE_LINKER="ld64.lld" ..
ninja
- name: Build (MinGW-w64 GCC)
run: |
cd tests
mkdir build-mingw
cd build-mingw
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=../mingw-w64-x86_64.cmake -DENABLE_CUDA=False ..
ninja
- name: Run (Apple Clang)
run: |
cd tests/build-appleclang
ctest -V
- name: Run (GCC)
run: |
cd tests/build-gcc
ctest -V
- name: Run (Clang)
run: |
cd tests/build-clang
ctest -V
test-macos-14:
name: macOS 14
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Install Toolchain
run: |
brew install --force-bottle ninja llvm lld mingw-w64
- name: Build (Apple Clang)
run: |
cd tests
mkdir build-appleclang
cd build-appleclang
cmake -G Ninja ..
ninja
- name: Build (GCC)
run: |
cd tests
mkdir build-gcc
cd build-gcc
GCC_VERSION="$(brew list --versions gcc | cut '-d ' -f2 | cut '-d.' -f1)"
cmake -G Ninja -DCMAKE_C_COMPILER="gcc-$GCC_VERSION" -DCMAKE_CXX_COMPILER="g++-$GCC_VERSION" ..
ninja
- name: Build (Clang)
run: |
cd tests
mkdir build-clang
cd build-clang
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
cmake -G Ninja -DCMAKE_C_COMPILER="/opt/homebrew/opt/llvm/bin/clang" -DCMAKE_CXX_COMPILER="/opt/homebrew/opt/llvm/bin/clang++" -DCMAKE_LINKER="ld64.lld" ..
ninja
- name: Build (MinGW-w64 GCC)
run: |
cd tests
mkdir build-mingw
cd build-mingw
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=../mingw-w64-x86_64.cmake -DENABLE_CUDA=False ..
ninja
- name: Run (Apple Clang)
run: |
cd tests/build-appleclang
ctest -V
- name: Run (GCC)
run: |
cd tests/build-gcc
ctest -V
- name: Run (Clang)
run: |
cd tests/build-clang
ctest -V
test-macos-15:
name: macOS 15
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Install Toolchain
run: |
brew install --force-bottle ninja llvm lld mingw-w64
- name: Build (Apple Clang)
run: |
cd tests
mkdir build-appleclang
cd build-appleclang
cmake -G Ninja ..
ninja
- name: Build (GCC)
run: |
cd tests
mkdir build-gcc
cd build-gcc
GCC_VERSION="$(brew list --versions gcc | cut '-d ' -f2 | cut '-d.' -f1)"
cmake -G Ninja -DCMAKE_C_COMPILER="gcc-$GCC_VERSION" -DCMAKE_CXX_COMPILER="g++-$GCC_VERSION" ..
ninja
- name: Build (Clang)
run: |
cd tests
mkdir build-clang
cd build-clang
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
cmake -G Ninja -DCMAKE_C_COMPILER="/opt/homebrew/opt/llvm/bin/clang" -DCMAKE_CXX_COMPILER="/opt/homebrew/opt/llvm/bin/clang++" -DCMAKE_LINKER="ld64.lld" ..
ninja
- name: Build (MinGW-w64 GCC)
run: |
cd tests
mkdir build-mingw
cd build-mingw
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=../mingw-w64-x86_64.cmake -DENABLE_CUDA=False ..
ninja
- name: Run (Apple Clang)
run: |
cd tests/build-appleclang
ctest -V
- name: Run (GCC)
run: |
cd tests/build-gcc
ctest -V
- name: Run (Clang)
run: |
cd tests/build-clang
ctest -V