-
Notifications
You must be signed in to change notification settings - Fork 65
79 lines (75 loc) · 2.55 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Windows
on:
pull_request:
branches: [ develop ]
jobs:
build_windows_msvc_base:
name: MSVC Base Release
runs-on: windows-2019
steps:
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
- name: Setup Python Env
run: python3 -m pip install --upgrade pip numpy mpi4py
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build & Test
run: |
cmake -S src -B build `
-DCMAKE_BUILD_TYPE=Release `
-DENABLE_PYTHON=ON `
-DENABLE_MPI=ON
cmake --build build --config Release --parallel 2
cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config Release --target RUN_TESTS --parallel 1
build_windows_msvc_py_ver:
name: MSVC Release Py Verison
runs-on: windows-2019
strategy:
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
steps:
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
- name: Setup Python Env
run: python3 -m pip install --upgrade pip numpy mpi4py
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build & Test
run: |
cmake -S src -B build `
-DCMAKE_BUILD_TYPE=Release `
-DENABLE_PYTHON=ON `
-DENABLE_MPI=ON
cmake --build build --config Release --parallel 2
cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config Release --target RUN_TESTS --parallel 1
cmake --install build --config Release
build_windows_clang:
name: Clang Base Debug
runs-on: windows-2019
steps:
- name: Setup Python Env
run: python3 -m pip install --upgrade pip numpy
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Build & Test
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\vc\Auxiliary\build\vcvarsall.bat" x64
cmake -S src -B build ^
-G "Ninja" ^
-DCMAKE_C_COMPILER=clang-cl ^
-DCMAKE_CXX_COMPILER=clang-cl ^
-DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug --parallel 2
cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config Debug --target test --parallel 1
cmake --install build --config Release