Commit 5162dc8
committed
[#246]:svarga:fix, package.yml macOS HDF5 discovery + Windows build-from-source
Two platform fixes in the same workflow file, both required for the
v1.12.5 Package run to produce assets across the full matrix.
macOS (#245):
The Configure step set HDF5_ROOT from brew --prefix but FindHDF5 on
macos-15 / Apple Silicon needed CMAKE_PREFIX_PATH as well to locate
the C library, producing:
Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS C)
ci.yml's macOS path sets both; package.yml only set one. Symmetrised.
Windows (#246):
choco install hdf5 returns "package not found" — there is no hdf5
package in the Chocolatey community repo. The #236 fix that
introduced this command was based on an incorrect assumption.
Replaced with the build-from-source pattern already validated by
ci.yml's Windows path:
- Build zlib 1.3.1 from source (~30s, not cached)
- Restore HDF5 1.12.2 cache if present
- Build HDF5 1.12.2 from source if cache-miss (~3-5min, cached)
- Save HDF5 cache on miss
Configure now consumes both prefixes through CMAKE_PREFIX_PATH.
The first run after this change will be slow (~5min for HDF5 build);
subsequent runs reuse the cache.1 parent 9abd0dd commit 5162dc8
1 file changed
Lines changed: 84 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
117 | | - | |
118 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
119 | 196 | | |
120 | 197 | | |
121 | 198 | | |
122 | 199 | | |
| 200 | + | |
| 201 | + | |
123 | 202 | | |
124 | 203 | | |
| 204 | + | |
| 205 | + | |
125 | 206 | | |
126 | 207 | | |
127 | 208 | | |
| |||
0 commit comments