-
Notifications
You must be signed in to change notification settings - Fork 17
61 lines (58 loc) · 1.55 KB
/
test.yml
File metadata and controls
61 lines (58 loc) · 1.55 KB
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
name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
codes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
- name: Install Prerequisites
run: |
sudo apt-get update -y
sudo apt-get install cmake -y
- name: Cache ROSS
id: cache-ross
uses: actions/cache@v3
env:
cache-name: cache-ross
with:
path: |
~/ross
key: v8.0.0
- if: ${{ steps.cache-ross.outputs.cache-hit != 'true' }}
name: Build ROSS
run: |
cd ~
git clone http://github.com/ross-org/ROSS.git
cd ROSS
mkdir build
cd build
mkdir -p ~/install/ross
ARCH=x86_64 CC=mpicc CXX=mpicxx cmake -DCMAKE_INSTALL_PREFIX=~/install/ross ../
make -j8
make install
- name: Build CODES
run: |
cd ~
git clone https://github.com/codes-org/codes.git
cd codes
sh prepare.sh
mkdir build
cd build
mkdir -p ~/install/codes
../configure --prefix=$HOME/install/codes CC=mpicc CXX=mpicxx PKG_CONFIG_PATH=~/install/ross/lib/pkgconfig
make -j8
- name: Check CODES
run: |
cd ~/codes/build
make tests
make check | tee checklog.txt
test `sed -n '/^# FAIL:/ s/.*[^0-9]\([0-9]\+\)$/\1/p' checklog.txt` == "0"