-
Notifications
You must be signed in to change notification settings - Fork 66
43 lines (41 loc) · 1.21 KB
/
build_ascent_win.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
name: build_ascent_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 TPLs
run: |
env build_ascent=false `
enable_tests=OFF `
./scripts/build_ascent/build_ascent.sh
- name: Configure Ascent
run: |
cmake --version
echo "**** Configuring Ascent"
cmake -S src -B build `
-C ascent-config.cmake `
-DENABLE_TESTS=ON `
-DCMAKE_INSTALL_PREFIX=install
- name: Build Ascent
run: |
echo "**** Building Ascent"
cmake --build build --config Release -j2
- name: Install Ascent
run: |
echo "**** Installing Ascent"
cmake --install build --config Release
- name: Run Ascent Unit Tests
run: |
echo "**** Ascent Unit Tests"
cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config Release --target RUN_TESTS