This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
95 lines (91 loc) · 2.85 KB
/
linux.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
86
87
88
89
90
91
92
93
94
95
name: Run CI
on: [push, pull_request]
jobs:
serial:
name: serial
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: info
run: |
g++ -v
cmake --version
- name: setup
run: |
cmake -E make_directory ${{runner.workspace}}/build-ci
cmake -E make_directory ${{runner.workspace}}/deps
- name: dependencies
run: |
# boost
sudo add-apt-repository ppa:mhier/libboost-latest
sudo apt-get update
sudo apt install libboost1.74
sudo apt install libboost1.74-dev
# AMREX
git clone https://github.com/AMReX-Codes/amrex.git ${{runner.workspace}}/deps/amrex
- name: configure
working-directory: ${{runner.workspace}}/build-ci
run: |
cmake -DCMAKE_BUILD_TYPE=Release \
-DPELERAD_DIM=3 \
-DPELERAD_ENABLE_MPI=OFF \
-DPELERAD_ENABLE_OPENMP=OFF \
-DPELERAD_ENABLE_EB=ON \
-DPELERAD_ENABLE_LINEARSOLVERS=ON \
-DPELERAD_ENABLE_HYPRE=OFF \
-DPELERAD_ENABLE_TESTS=ON \
-DAMREX_HOME_DIR=${{runner.workspace}}/deps/amrex \
${GITHUB_WORKSPACE}
- name: build
working-directory: ${{runner.workspace}}/build-ci
run: |
make -j 8
- name: test
working-directory: ${{runner.workspace}}/build-ci
run: |
ctest --output-on-failure
mpi-cpu:
name: mpi-cpu
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: info
run: |
g++ -v
cmake --version
- name: setup
run: |
cmake -E make_directory ${{runner.workspace}}/build-ci
cmake -E make_directory ${{runner.workspace}}/deps
- name: dependencies
run: |
# mpi
sudo apt-get install -y openmpi-bin libopenmpi-dev
# boost
sudo add-apt-repository ppa:mhier/libboost-latest
sudo apt-get update
sudo apt install libboost1.74
sudo apt install libboost1.74-dev
# AMREX
git clone https://github.com/AMReX-Codes/amrex.git ${{runner.workspace}}/deps/amrex
- name: configure
working-directory: ${{runner.workspace}}/build-ci
run: |
cmake -DCMAKE_BUILD_TYPE=Release \
-DPELERAD_DIM=3 \
-DPELERAD_ENABLE_MPI=ON \
-DPELERAD_ENABLE_OPENMP=OFF \
-DPELERAD_ENABLE_EB=ON \
-DPELERAD_ENABLE_LINEARSOLVERS=ON \
-DPELERAD_ENABLE_HYPRE=OFF \
-DPELERAD_ENABLE_TESTS=ON \
-DAMREX_HOME_DIR=${{runner.workspace}}/deps/amrex \
${GITHUB_WORKSPACE}
- name: build
working-directory: ${{runner.workspace}}/build-ci
run: |
make -j 8
- name: test
working-directory: ${{runner.workspace}}/build-ci
run: |
ctest --output-on-failure