forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.2 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
name: windows
on:
workflow_run:
workflows: ["source"]
types:
- completed
jobs:
build_win_msvc:
name: MSVC C++17 w/o MPI
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build & Install
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON -DWarpX_COMPUTE=NOACC -DWarpX_OPENPMD=ON -DWarpX_MPI=OFF
cmake --build build --config Debug --parallel 2
build_win_clang:
name: Clang C++17 w/ OMP w/o MPI
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Build & Install
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\vc\Auxiliary\build\vcvarsall.bat" x64
cmake -S . -B build ^
-G "Ninja" ^
-DCMAKE_C_COMPILER=clang-cl ^
-DCMAKE_CXX_COMPILER=clang-cl ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_VERBOSE_MAKEFILE=ON ^
-DWarpX_COMPUTE=OMP ^
-DWarpX_OPENPMD=ON ^
-DWarpX_MPI=OFF
cmake --build build --config Release --parallel 2