-
Notifications
You must be signed in to change notification settings - Fork 7
77 lines (69 loc) · 2.04 KB
/
build_champ_unit_test.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
name: CHAMP Unit Tests
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
debug_build_test_champ:
name: unit test with ${{ matrix.toolchain }} ${{ matrix.mode }} mode
runs-on: ubuntu-22.04
timeout-minutes: 20
strategy:
matrix:
toolchain: ['gnu']
mode: ['DEBUG']
defaults:
run:
shell: bash --noprofile --norc {0}
steps:
- uses: actions/checkout@v3
- name: Install Cmake and HDF5
run: |
sudo apt install -y cmake
sudo apt install -y libhdf5-serial-dev
- name: Install GNU compilers and libraries
if: matrix.toolchain == 'gnu'
run: |
sudo apt-get update
sudo apt install -y gfortran
sudo apt install -y valgrind
sudo apt install -y openmpi-bin
sudo apt install -y libopenmpi-dev
sudo apt install -y gawk
sudo apt install -y liblapack-dev
sudo apt install -y libblas-dev
sudo apt-get install -y gcc
gawk --version
mpirun --version
gfortran --version
gcc --version
- name: Install Trexio
run: |
wget https://github.com/TREX-CoE/trexio/releases/download/v1.0/trexio-1.0.0.tar.gz
tar -xzf trexio-1.0.0.tar.gz
cd trexio-1.0.0/
./configure FC=gfortran CC=gcc
make all
make check
sudo make install
sudo cp include/* /usr/local/include/
- name: Install FortUTF for Unit Testing
run: |
git submodule init
git submodule update
- name: Compile with GNU
if: matrix.toolchain == 'gnu'
run: |
printenv >> $GITHUB_ENV
which mpif90
MPIRUN=`which mpirun`
echo "mpirun used is " $MPIRUN
cmake --version
cmake -H. -Bbuild -DCMAKE_Fortran_COMPILER=mpif90 \
-DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DUNIT_TESTS=on
cmake --build build -- vmc_Tests -j2
ulimit -s unlimited
- name: "run vmc testing suite"
run: |
cd tests/unit_test
./run_tests.sh