forked from HDFGroup/hermes
-
Notifications
You must be signed in to change notification settings - Fork 1
85 lines (83 loc) · 2.69 KB
/
spack_ctest.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
81
82
83
84
85
name: spack ctest
on:
push:
branches: [ master- ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get Sources
uses: actions/checkout@v3
- name: Checkout Spack
uses: actions/checkout@v3
with:
repository: spack/spack
path: ./spack
- name: Install APT Dependencies
run: |
sudo apt update
sudo apt-get install -y autoconf
sudo apt-get install -y automake
sudo apt-get install -y catch
sudo apt-get install -y cmake
sudo apt-get install -y diffutils
sudo apt-get install -y libtool
sudo apt-get install -y libtool-bin
sudo apt-get install -y lcov
sudo apt-get install -y libdb-dev
sudo apt-get install -y libedit-dev
sudo apt-get install -y libncurses6
sudo apt-get install -y libsdl2-dev
sudo apt-get install -y libsigsegv-dev
sudo apt-get install -y libxml2-dev
sudo apt-get install -y libyaml-cpp-dev
sudo apt-get install -y mpich
sudo apt-get install -y openssl
sudo apt-get install -y xz-utils
sudo apt-get install -y zlib1g-dev
- name: Run Spack
run: |
pip install clingo
. ./spack/share/spack/setup-env.sh
spack compiler find
spack external find autoconf
spack external find automake
spack external find berkeley-db
spack external find boost
spack external find catch2
spack external find diffutils
spack external find libedit
spack external find libtool
spack external find libiconv
spack external find libfabric
spack external find libsigsegv
spack external find libxml2
spack external find m4
spack external find mpich
spack external find ncurses
spack external find openssl
spack external find perl
spack external find pkgconf
spack external find zlib
spack external find xz
spack install cmake
spack load cmake
spack install glpk
spack load glpk
spack install glog
spack load glog
spack install catch2
spack load catch2
spack install mochi-thallium@main~cereal
spack load mochi-thallium@main~cereal
spack install hdf5@develop ^mpi ^mpich
spack load hdf5
cmake --version
mkdir build
cd build
cmake ..
make -j
ctest .
# ci/install_hermes_glpk.sh
# pushd ci/cluster && ./multi_node_ci_test.sh