xtensor: Make HighFive compatible with 0.26. #105
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Tests | |
| # 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 compiling on several Ubuntu systems + MPI | |
| # ========================================================= | |
| # | |
| # XTensor tests are run for conda/mamba and MacOS | |
| # Job testing in Windows | |
| # ====================== | |
| Windows: | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| matrix: | |
| os: [ "windows-2019", "windows-2022"] | |
| cxxstd: ["17"] | |
| 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: | | |
| 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 | |
| ) | |
| 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 |