Skip to content

CMake AnyNewerVersion -> SameMajorVersion #1037

CMake AnyNewerVersion -> SameMajorVersion

CMake AnyNewerVersion -> SameMajorVersion #1037

Workflow file for this run

name: github-windows
on: [push, pull_request]
concurrency:
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
windows-threads:
name: Windows Threads
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Install dependencies via vcpkg
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: boost-test boost-program-options boost-geometry benchmark
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: true
- uses: actions/checkout@v4
with:
repository: kokkos/kokkos
ref: 4.4.00
path: ${GITHUB_WORKSPACE}/../kokkos
- name: Install Kokkos
shell: bash
working-directory: ${GITHUB_WORKSPACE}/../kokkos
run: |
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=C:\kokkos-install \
-D Kokkos_ENABLE_THREADS=ON \
..
cmake --build . --target install -- -m
- name: Configure ArborX
run: |
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_FLAGS="/EHsc /bigobj"
-D Kokkos_ROOT="C:\kokkos-install" \
-D Kokkos_MAP_IMPORTED_CONFIG=""
${{ steps.vcpkg.outputs.vcpkg-cmake-config }}
-D ARBORX_ENABLE_MPI=OFF \
-D ARBORX_ENABLE_TESTS=ON \
-D ARBORX_ENABLE_EXAMPLES=ON \
-D ARBORX_ENABLE_BENCHMARKS=ON \
-D ARBORX_ENABLE_HEADER_SELF_CONTAINMENT_TESTS=OFF \
..
- name: Build ArborX
shell: bash
run: |
cmake --build build --target install -- -m
cd build