File tree Expand file tree Collapse file tree 5 files changed +45
-11
lines changed Expand file tree Collapse file tree 5 files changed +45
-11
lines changed Original file line number Diff line number Diff line change 34
34
35
35
- uses : actions/setup-python@v2
36
36
with :
37
- python-version : " 3.8"
37
+ python-version : ' 3.10'
38
+
39
+ - name : Python pkgs
40
+ run : pip install numpy h5py pandas matplotlib
38
41
39
42
- name : install hdf5
40
43
run : |
43
46
44
47
- uses : actions/checkout@v2
45
48
46
- - name : Python pkgs
47
- run : pip install --user -r requirements.txt
48
-
49
49
- run : cmake --preset multi -DCMAKE_INSTALL_PREFIX=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
50
50
51
51
- name : Build Debug
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ name: ci_macos
2
2
3
3
env :
4
4
CTEST_PARALLEL_LEVEL : 4
5
- CMAKE_BUILD_TYPE : Release
6
5
HOMEBREW_NO_INSTALL_CLEANUP : 1
7
6
FC : gfortran-11
8
7
28
27
29
28
steps :
30
29
30
+ - uses : actions/setup-python@v2
31
+ with :
32
+ python-version : ' 3.10'
33
+
34
+ - name : install h5py
35
+ run : pip install h5py
36
+
31
37
- run : brew install hdf5-mpi ninja libaec
32
38
33
39
- uses : actions/checkout@v2
48
54
run : cmake --build example/build --parallel
49
55
- name : Test Examples
50
56
run : ctest --test-dir example/build -V
57
+
58
+
59
+ macos-build :
60
+ needs : macos
61
+ runs-on : macos-latest
62
+ timeout-minutes : 20
63
+
64
+ strategy :
65
+ matrix :
66
+ shared : [true, false]
67
+
68
+ steps :
69
+
70
+ - uses : actions/checkout@v2
71
+
72
+ - name : Configure HDF5
73
+ run : cmake -S scripts -B scripts/build -DCMAKE_INSTALL_PREFIX=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
74
+
75
+ - name : Build/install HDF5
76
+ run : cmake --build scripts/build --parallel
77
+
78
+ - run : cmake -B build -DCMAKE_INSTALL_PREFIX=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }} -DCMAKE_PREFIX_PATH=${{ runner.temp }}
79
+ - run : cmake --build build --parallel
80
+ - run : ctest --test-dir build --preset default
81
+ - run : cmake --install build
82
+
83
+ - name : configure examples
84
+ run : cmake -S example -B example/build -DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
85
+ - name : build Examples
86
+ run : cmake --build example/build --parallel
87
+ - name : Test Examples
88
+ run : ctest --test-dir example/build -V
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ target_link_libraries(example1 h5mpi::h5mpi MPI::MPI_Fortran MPI::MPI_C)
16
16
add_test (NAME Example1 COMMAND example1 )
17
17
set_tests_properties (Example1 PROPERTIES
18
18
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
19
- TIMEOUT 10
19
+ TIMEOUT 30
20
20
)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -125,6 +125,6 @@ DISABLED $<NOT:$<BOOL:${h5py_ok}>>
125
125
get_property (test_names DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS )
126
126
127
127
set_tests_properties (${test_names} PROPERTIES
128
- TIMEOUT 10
128
+ TIMEOUT 30
129
129
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
130
130
)
You can’t perform that action at this time.
0 commit comments