Skip to content

Commit 4ce4113

Browse files
committed
ci:windows: install HDF5 too
ci:windows: schedule as cache restore doesn't yet work
1 parent 9abb4c8 commit 4ce4113

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed

.github/workflows/oneapi-windows.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,13 @@ env:
1919
on:
2020
push:
2121
paths:
22-
- "**.bat"
23-
- "**/*.cpp"
24-
- "**.f90"
25-
- "**.F90"
26-
- "**.cmake"
27-
- "**/CMakeLists.txt"
2822
- ".github/workflows/oneapi-windows.yml"
2923
- ".github/workflows/oneapi_install_windows.bat"
3024
- ".github/workflows/oneapi_run_windows.bat"
3125
- ".github/workflows/oneapi_cache_exclude_windows.bat"
26+
schedule:
27+
- cron: '25 10 6 * *'
28+
3229

3330
jobs:
3431

@@ -39,17 +36,20 @@ jobs:
3936
steps:
4037
- uses: actions/checkout@v3
4138

42-
- name: cache install oneAPI
43-
timeout-minutes: 10
44-
id: cache-install
45-
uses: actions/cache@v3
46-
with:
47-
path: |
48-
C:\Program Files (x86)\Intel\oneAPI\setvars.bat
49-
C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat
50-
C:\Program Files (x86)\Intel\oneAPI\compiler
51-
C:\Program Files (x86)\Intel\oneAPI\mpi
52-
key: install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_CPP_COMPONENTS }}-${{ env.WINDOWS_FORTRAN_COMPONENTS }}-${{ env.WINDOWS_MPI_COMPONENTS }}
39+
# - name: cache install oneAPI
40+
# timeout-minutes: 10
41+
# id: cache-install
42+
# uses: actions/cache@v3
43+
# with:
44+
# path: |
45+
# C:\Program Files (x86)\Intel\oneAPI\setvars.bat
46+
# C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat
47+
# C:\Program Files (x86)\Intel\oneAPI\compiler
48+
# C:\Program Files (x86)\Intel\oneAPI\mpi
49+
# key: install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_CPP_COMPONENTS }}-${{ env.WINDOWS_FORTRAN_COMPONENTS }}-${{ env.WINDOWS_MPI_COMPONENTS }}
50+
# NOTE: cache recovers oneAPI, but the setvars.bat doesn't actually find oneAPI (does find Visual Studio).
51+
# cache@v2 and cache@v3 have the same behavior.
52+
# Thus we run monthly till we figure out cache.
5353

5454
- name: no-cache install oneAPI
5555
timeout-minutes: 40

.github/workflows/oneapi_run_windows.bat

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,27 @@ if %errorlevel% neq 0 exit /b %errorlevel%
66

77
echo "I_MPI_ROOT: %I_MPI_ROOT%"
88

9-
echo "configure"
9+
echo "Configure HDF5"
10+
cmake -S scripts -B scripts/build -DCMAKE_INSTALL_PREFIX=%RUNNER_TEMP%
11+
if %errorlevel% neq 0 (
12+
type scripts\build\CMakeFiles\CMakeError.log & exit /b %errorlevel%
13+
)
14+
15+
echo "Build/install HDF5"
16+
cmake --build scripts/build --parallel
17+
if %errorlevel% neq 0 exit /b %errorlevel%
18+
19+
echo "configure %GITHUB_REPOSITORY%"
1020
cmake -B build -DCMAKE_INSTALL_PREFIX=%RUNNER_TEMP%
1121
if %errorlevel% neq 0 (
1222
type build\CMakeFiles\CMakeError.log & exit /b %errorlevel%
1323
)
1424

15-
echo "build"
25+
echo "build %GITHUB_REPOSITORY%"
1626
cmake --build build --parallel
1727
if %errorlevel% neq 0 exit /b %errorlevel%
1828

19-
echo "Run tests"
29+
echo "test %GITHUB_REPOSITORY%"
2030
ctest --test-dir build --preset default -V
2131
if %errorlevel% neq 0 exit /b %errorlevel%
2232

0 commit comments

Comments
 (0)