Skip to content

ci: replace windows-20{19 -> 25}. #130

ci: replace windows-20{19 -> 25}.

ci: replace windows-20{19 -> 25}. #130

Workflow file for this run

name: Unit Tests
# See, scorecard.dev (Token Permission)
# https://github.com/ossf/scorecard/blob/a16e0f9eb245274f08512e33dc7afa78d21c460c/docs/checks.md#token-permissions
permissions: read-all
concurrency:
group: ${{ github.workflow }}#${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'main' }}
on:
workflow_dispatch:
push:
branches:
- master
- main
- v2.x
pull_request:
branches:
- master
- main
- v2.x
paths-ignore:
- '**.md'
- '**.rst'
- 'doc/**'
env:
HOMEBREW_NO_AUTO_UPDATE: 1 # for reproducibility, dont autoupdate
BUILD_TYPE: RelWithDebInfo
INSTALL_DIR: install
jobs:
# Job testing in Windows
# ======================
Windows:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ "windows-2022", "windows-2025"]
cxxstd: ["14", "17", "20"]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: mamba-org/setup-micromamba@v2
with:
environment-file: .github/mamba_env_cxx${{matrix.cxxstd}}.yaml
environment-name: win-test
- name: Build
shell: bash -l {0}
run: |
if (( ${{ matrix.cxxstd }} == 17 ))
then
XTENSOR_HEADER_VERSION=2
else
# Both C++14 and C++20 use 0.26
XTENSOR_HEADER_VERSION=1
fi
CMAKE_OPTIONS=(
-DCMAKE_CXX_STANDARD=${{matrix.cxxstd}}
-DHIGHFIVE_UNIT_TESTS=ON
-DHIGHFIVE_TEST_BOOST:BOOL=ON
-DHIGHFIVE_TEST_EIGEN:BOOL=ON
-DHIGHFIVE_TEST_XTENSOR:BOOL=ON
-DHIGHFIVE_XTENSOR_HEADER_VERSION=$XTENSOR_HEADER_VERSION
)
source $GITHUB_WORKSPACE/.github/build.sh
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash -l {0}
run: |
ctest -j2 --output-on-failure -C $BUILD_TYPE
- name: Test No HDF5 Diagnositics
working-directory: ${{github.workspace}}/build
shell: bash -l {0}
run: |
! ctest --verbose -C $BUILD_TYPE | grep HDF5-DIAG