-
Notifications
You must be signed in to change notification settings - Fork 67
55 lines (53 loc) · 1.59 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
44
45
46
47
48
49
50
51
52
53
54
55
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@v4
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
# NOT READY FOR THIS ON WINDOWS YET
# - name: Create Unit Test Report
# if: always()
# run: |
# echo "**** Ascent Unit Tests Report Ggen"
# cmake --build build --target gen_report
# - name: Archive Test Results
# if: always()
# uses: actions/upload-artifact@v1
# with:
# name: test-results
# path: build/tests/_output/