Skip to content

modernize and enhance HDF5 build script #866

modernize and enhance HDF5 build script

modernize and enhance HDF5 build script #866

Workflow file for this run

name: ci_windows
env:
CMAKE_GENERATOR: Ninja
on:
push:
paths:
- "**.c"
- "**.cpp"
- "**.f90"
- "**.F90"
- "**/CMakeLists.txt"
- "**.cmake"
- ".github/workflows/ci_windows.yml"
- "!memcheck.cmake"
- "!coverage.cmake"
- "!scripts/**"
workflow_dispatch:
# avoid wasted runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
msys2:
timeout-minutes: 30
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
id: msys2
with:
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc-fortran
mingw-w64-ucrt-x86_64-hdf5
- name: Put MSYS2_MinGW64 on PATH
run: echo "${{ steps.msys2.outputs.msys2-location }}/ucrt64/bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: prefix path
run: |
echo "CMAKE_INSTALL_PREFIX=$HOME/libs" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CMAKE_PREFIX_PATH=$HOME/libs;${{ steps.msys2.outputs.msys2-location }}/ucrt64/" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- uses: actions/checkout@v6
- name: CMake workflow
run: cmake --workflow default
- name: Upload log failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: ${{ runner.os }}-CMakeConfigureLog.yaml
path: build/CMakeFiles/CMakeConfigureLog.yaml
- name: install package
run: cmake --install build
- name: example workflow
working-directory: example
run: cmake --workflow default