-
Notifications
You must be signed in to change notification settings - Fork 66
80 lines (78 loc) · 2.6 KB
/
build_ascent_gcc.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
80
name: build_ascent_gcc
on:
pull_request:
branches: [ develop ]
jobs:
build_basic:
name: Ubuntu Build Ascent GCC
runs-on: ubuntu-latest
env:
CC: gcc
CXX: g++
FC: gfortran
steps:
- name: Install System Deps
run: |
sudo apt-get update
sudo apt-get install binutils \
gcc \
g++ \
gfortran \
python3 \
perl \
git \
git-lfs \
curl \
wget \
tar \
unzip \
build-essential \
libncurses-dev \
libssl-dev \
libblas-dev \
liblapack-dev \
zlib1g-dev \
libgdbm-dev \
libreadline-dev \
libsqlite3-dev \
libbz2-dev \
openmpi-bin \
openmpi-common \
libopenmpi-dev \
cmake
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build TPLs
run: |
env enable_mpi=ON \
enable_fortran=ON \
enable_tests=OFF \
enable_verbose=OFF \
build_ascent=false \
build_jobs=2 \
./scripts/build_ascent/build_ascent.sh
- name: Configure Ascent
run: |
cmake --version
echo "**** Configuring Ascent"
cmake -S src -B build -C ascent-config.cmake -DCMAKE_INSTALL_PREFIX=install
- name: Build Ascent
run: |
echo "**** Building Ascent"
cmake --build build -j2
- name: Install Ascent
run: |
echo "**** Installing Ascent"
cmake --install build
- name: Check Install
run: |
echo "**** Checking Ascent using-with-cmake-mpi example"
export CC=/usr/bin/mpicc
export CXX=/usr/bin/mpicxx
cd install/examples/ascent/using-with-cmake-mpi
cmake -S . -B build
cmake --build build --verbose -j2
export LD_LIBRARY_PATH=/home/runner/work/ascent/ascent/install/vtk-m-v2.0.0/lib/:${LD_LIBRARY_PATH}
mpiexec -n 2 ./build/ascent_mpi_render_example