-
Notifications
You must be signed in to change notification settings - Fork 19
71 lines (64 loc) · 2.16 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
name: 🪟 Windows
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-windows
cancel-in-progress: true
jobs:
msvc:
name: MSVC w/o MPI static release
runs-on: windows-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Build & Install
run: |
python3 -m pip install -U pip pytest
python3 -m pip install -v .
if(!$?) { Exit $LASTEXITCODE }
python3 -c "import amrex.space1d as amr; print(amr.__version__)"
python3 -c "import amrex.space2d as amr; print(amr.__version__)"
python3 -c "import amrex.space3d as amr; print(amr.__version__)"
- name: Unit tests
shell: cmd
run: python3 -m pytest tests
clang:
name: Clang w/o MPI shared debug
runs-on: windows-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Build
run: |
python3 -m pip install -U pip setuptools wheel pytest
python3 -m pip install -U cmake
python3 -m pip install -r requirements.txt
cmake -S . -B build `
-T "ClangCl" `
-DCMAKE_VERBOSE_MAKEFILE=ON `
-DBUILD_SHARED_LIBS=ON `
-DAMReX_MPI=OFF `
-DAMReX_SPACEDIM="1;2;3"
if(!$?) { Exit $LASTEXITCODE }
cmake --build build --config Debug -j 2
if(!$?) { Exit $LASTEXITCODE }
- name: Unit tests
run: |
ctest --test-dir build -C Debug --output-on-failure
- name: Install
run: |
cmake --build build --config Debug --target install
if(!$?) { Exit $LASTEXITCODE }
cmake --build build --config Debug --target pip_install
if(!$?) { Exit $LASTEXITCODE }
- name: Unit tests as Installed
run: |
$env:PATH += ';C:/Program Files (x86)/pyAMReX/bin/'
rm -r -fo build
python3 -m pytest tests