@@ -62,30 +62,35 @@ jobs:
6262 - os : macos-latest
6363 c_compiler : cl
6464
65-
6665 steps :
6766 - uses : actions/checkout@v4
6867
6968 # ------------------------
70- # Install OpenMP everywhere
69+ # Install OpenMP + HDF5
7170 # ------------------------
72- - name : Install OpenMP (Ubuntu)
71+ - name : Install OpenMP + HDF5 (Ubuntu)
7372 if : startsWith(matrix.os, 'ubuntu')
7473 run : |
7574 sudo apt-get update
76- sudo apt-get install -y libomp-dev
75+ sudo apt-get install -y libomp-dev libhdf5-dev
7776
78- - name : Install OpenMP + LLVM (macOS)
77+ - name : Install OpenMP + HDF5 (macOS)
7978 if : matrix.os == 'macos-latest'
8079 run : |
8180 brew update
82- brew install llvm libomp
81+ brew install llvm libomp hdf5
8382
84- - name : Install MinGW with OpenMP (Windows GCC)
83+ - name : Install MinGW with OpenMP + HDF5 (Windows GCC)
8584 if : matrix.os == 'windows-latest' && matrix.c_compiler == 'gcc'
8685 run : |
8786 choco install mingw -y
88- # MinGW-w64 includes OpenMP headers/libraries
87+ choco install hdf5 -y || echo "HDF5 via Chocolatey may not exist; use vcpkg fallback"
88+ vcpkg install hdf5
89+
90+ - name : Install HDF5 (Windows MSVC)
91+ if : matrix.os == 'windows-latest' && matrix.c_compiler == 'cl'
92+ run : |
93+ vcpkg install hdf5
8994
9095 # ------------------------
9196 # Set reusable strings
@@ -107,7 +112,7 @@ jobs:
107112 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
108113 -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang
109114 -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++
110- -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/llvm
115+ -DCMAKE_PREFIX_PATH=" /opt/homebrew/opt/llvm;/opt/homebrew/opt/hdf5"
111116 -DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp"
112117 -DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp"
113118 -DOpenMP_C_LIB_NAMES="omp"
@@ -144,4 +149,3 @@ jobs:
144149 with :
145150 name : next-${{ matrix.os }}-${{ matrix.c_compiler }}
146151 path : ${{ github.workspace }}/next*
147-
0 commit comments