Skip to content

Adds a way to control chunkspan print formating #679

Adds a way to control chunkspan print formating

Adds a way to control chunkspan print formating #679

Workflow file for this run

# Copyright (C) The DDC development team, see COPYRIGHT.md file
#
# SPDX-License-Identifier: MIT
---
name: Tests on Windows
# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- '.github/workflows/tests-windows.yaml'
- '**.cpp'
- '**.hpp'
- '**.hpp.in'
- 'CMakeLists.txt'
- '**/CMakeLists.txt'
- '**.cmake'
- '**.cmake.in'
- 'docker/**'
- 'vendor/**'
push:
branches:
- main
paths:
- '.github/workflows/tests-windows.yaml'
- '**.cpp'
- '**.hpp'
- '**.hpp.in'
- 'CMakeLists.txt'
- '**/CMakeLists.txt'
- '**.cmake'
- '**.cmake.in'
- 'docker/**'
- 'vendor/**'
concurrency:
group: ${{github.workflow}}-${{github.ref == github.ref_protected && github.run_id || github.event.pull_request.number || github.ref}}
cancel-in-progress: true
permissions:
contents: read
jobs:
test-windows:
if: github.ref_name != 'main'
strategy:
fail-fast: false
matrix:
cxx_version: ['20', '23']
config: ['Release']
os: [windows-2022, windows-2025]
runs-on: ${{matrix.os}}
env:
Kokkos_ROOT: ${{github.workspace}}/opt/kokkos
GTest_ROOT: ${{github.workspace}}/opt/gtest
CMAKE_BUILD_PARALLEL_LEVEL: 4
steps:
- name: Checkout built branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: google/googletest
ref: v1.17.0
path: googletest
- name: Install Google test
shell: bash
run: |
cmake \
-D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded \
-B build \
-S googletest
cmake --build build --config ${{matrix.config}}
cmake --install build --config ${{matrix.config}} --prefix $GTest_ROOT
rm -rf build
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: kokkos/kokkos
ref: 5.0.2
path: kokkos
- name: Install Kokkos
shell: bash
run: |
cmake \
-D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded \
-D Kokkos_ENABLE_DEPRECATED_CODE_4=OFF \
-D Kokkos_ENABLE_DEPRECATION_WARNINGS=OFF \
-D Kokkos_ENABLE_SERIAL=ON \
-B build \
-S kokkos
cmake --build build --config ${{matrix.config}}
cmake --install build --config ${{matrix.config}} --prefix $Kokkos_ROOT
rm -rf build
- name: Build DDC
shell: bash
run: |
cmake \
-D CMAKE_CXX_STANDARD=${{matrix.cxx_version}} \
-D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded \
-D DDC_GTest_DEPENDENCY_POLICY=INSTALLED \
-D DDC_Kokkos_DEPENDENCY_POLICY=INSTALLED \
-D DDC_BUILD_KERNELS_FFT=OFF \
-D DDC_BUILD_KERNELS_SPLINES=OFF \
-D DDC_BUILD_PDI_WRAPPER=OFF \
-B build
cmake --build build --config ${{matrix.config}}
ctest --test-dir build --build-config ${{matrix.config}} --output-on-failure --timeout 10 --output-junit tests.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@bccf2e31636835cf0874589931c4116687171386 # v6.4.0
if: ( success() || failure() ) # always run even if the previous step fails
with:
annotate_only: true # forked repo cannot write to checks so just do annotations
report_paths: '${{github.workspace}}/build/tests.xml'
- name: Run examples
shell: bash
run: |
./build/examples/${{matrix.config}}/game_of_life.exe
./build/examples/${{matrix.config}}/heat_equation.exe
./build/examples/${{matrix.config}}/non_uniform_heat_equation.exe
./build/examples/${{matrix.config}}/uniform_heat_equation.exe