Skip to content

Commit 7dd078d

Browse files
authored
Add windows test deprecated CI (#5604)
* Disable directvfd for windows * Windows must have config mode
1 parent cb81d56 commit 7dd078d

File tree

2 files changed

+55
-3
lines changed

2 files changed

+55
-3
lines changed

.github/workflows/main-cmake-spc.yml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ jobs:
290290
run: ctest . --parallel 2 -C Debug -V
291291
working-directory: ${{ runner.workspace }}/build
292292

293-
build_v2_0:
294-
name: "gcc DBG v2.0.0 default API"
293+
build_v2_0_linux:
294+
name: "gcc DBG v2.0.0 default API no deprecated"
295295
runs-on: ubuntu-latest
296296
steps:
297297
# SETUP
@@ -343,6 +343,58 @@ jobs:
343343
run: ctest . --parallel 2 -C Debug -V
344344
working-directory: ${{ runner.workspace }}/build
345345

346+
build_v2_0_win:
347+
name: "Intel DBG v2.0.0 default API no deprecated"
348+
runs-on: windows-latest
349+
steps:
350+
# SETUP
351+
- name: Install Dependencies (Windows)
352+
run: choco install ninja
353+
354+
- name: Install Dependencies
355+
uses: ssciwr/doxygen-install@v1
356+
with:
357+
version: "1.13.2"
358+
359+
- name: install oneAPI (Windows)
360+
uses: fortran-lang/setup-fortran@v1
361+
id: setup-fortran
362+
with:
363+
compiler: intel
364+
version: '2025.0'
365+
366+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
367+
- name: Get Sources
368+
uses: actions/[email protected]
369+
370+
- name: CMake Configure (Windows)
371+
shell: pwsh
372+
env:
373+
FC: ${{ steps.setup-fortran.outputs.fc }}
374+
CC: ${{ steps.setup-fortran.outputs.cc }}
375+
run: |
376+
mkdir "${{ runner.workspace }}/build"
377+
Set-Location -Path "${{ runner.workspace }}\\build"
378+
cmake -C ${{ github.workspace }}/config/cmake/cacheinit.cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DHDF5_ENABLE_ALL_WARNINGS=ON -DHDF5_ENABLE_PARALLEL:BOOL=OFF -DHDF5_BUILD_CPP_LIB:BOOL=ON -DHDF5_BUILD_FORTRAN=ON -DHDF5_BUILD_JAVA=ON -DHDF5_BUILD_DOC=OFF -DLIBAEC_USE_LOCALCONTENT=OFF -DZLIB_USE_LOCALCONTENT=OFF -DHDF5_ENABLE_MIRROR_VFD:BOOL=ON -DHDF5_ENABLE_DIRECT_VFD:BOOL=OFF -DHDF5_ENABLE_DEPRECATED_SYMBOLS:BOOL=OFF -DHDF5_DEFAULT_API_VERSION:STRING=v200 ${{ github.workspace }}
379+
380+
- name: CMake Build (Windows)
381+
shell: pwsh
382+
env:
383+
FC: ${{ steps.setup-fortran.outputs.fc }}
384+
CC: ${{ steps.setup-fortran.outputs.cc }}
385+
run: |
386+
cmake --build . --parallel 3 --config Debug
387+
working-directory: ${{ runner.workspace }}/build
388+
389+
- name: CMake Run Tests (Windows)
390+
shell: pwsh
391+
env:
392+
FC: ${{ steps.setup-fortran.outputs.fc }}
393+
CC: ${{ steps.setup-fortran.outputs.cc }}
394+
run: |
395+
ctest . --parallel 2 -C Debug -V
396+
working-directory: ${{ runner.workspace }}/build
397+
346398
build_system_zlib:
347399
name: "gcc system zlib"
348400
runs-on: ubuntu-latest

fortran/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (WIN32)
2020
if (NOT H5_FORTRAN_C_LONG_DOUBLE_IS_UNIQUE)
2121
set (H5_DBL_NOT_UNIQUE_EXP ";")
2222
endif ()
23-
if (NOT H5_NO_DEPRECATED_SYMBOLS)
23+
if (H5_NO_DEPRECATED_SYMBOLS)
2424
set (DLL_NO_DEPRECATED_SYMBOLS ";")
2525
endif ()
2626
configure_file (${HDF5_F90_SRC_SOURCE_DIR}/hdf5_fortrandll.def.in ${HDF5_F90_SRC_BINARY_DIR}/hdf5_fortrandll.def @ONLY)

0 commit comments

Comments
 (0)