-
Notifications
You must be signed in to change notification settings - Fork 20
123 lines (123 loc) · 4.57 KB
/
build-ubuntu.yaml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: build-ubuntu
on:
pull_request:
push:
workflow_dispatch:
jobs:
asgard-core:
# no MPI/CUDA but on CPU with OpenBlas and HDF5
# some BALS is required, makes little sense to skip HDF5 (can't output anything)
strategy:
matrix:
prec: [float, double]
compiler: [clang++-14, g++-11]
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Makedir
working-directory: ${{runner.workspace}}/asgard
run: cmake -E make_directory build
- name: Configure
working-directory: ${{runner.workspace}}/asgard/build
run: cmake -DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_COMPILER=${{matrix.compiler}}
-DASGARD_PRECISIONS=${{matrix.prec}}
-DASGARD_BUILD_HDF5=ON
-DASGARD_RECOMMENDED_DEFAULTS=ON
../
- name: Build
working-directory: ${{runner.workspace}}/asgard/build
run: make -j VERBOSE=1
- name: Test
working-directory: ${{runner.workspace}}/asgard/build
run: ctest --output-on-failure
- name: Show Log
if: failure()
working-directory: ${{runner.workspace}}/asgard/build/Testing/Temporary
run: cat LastTest.log
asgard-allprec:
# g++-11 using both precisions
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Makedir
working-directory: ${{runner.workspace}}/asgard
run: cmake -E make_directory build
- name: Configure
working-directory: ${{runner.workspace}}/asgard/build
run: cmake -DCMAKE_BUILD_TYPE=Release
-DASGARD_PRECISIONS="float;double"
-DASGARD_RECOMMENDED_DEFAULTS=ON
../
- name: Build
working-directory: ${{runner.workspace}}/asgard/build
run: make -j VERBOSE=1
- name: Test
working-directory: ${{runner.workspace}}/asgard/build
run: make test
- name: Show Log
if: failure()
working-directory: ${{runner.workspace}}/asgard/build/Testing/Temporary
run: cat LastTest.log
asgard-mpi:
# basic MPI build using default settings
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: install
working-directory: ${{runner.workspace}}/asgard
run: sudo apt install -y libopenmpi-dev
- name: Makedir
working-directory: ${{runner.workspace}}/asgard
run: cmake -E make_directory build
- name: Configure
working-directory: ${{runner.workspace}}/asgard/build
run: cmake -DCMAKE_BUILD_TYPE=Release
-DASGARD_USE_MPI=ON
-DASGARD_RECOMMENDED_DEFAULTS=ON
../
- name: Build
working-directory: ${{runner.workspace}}/asgard/build
run: make -j VERBOSE=1
- name: Test
working-directory: ${{runner.workspace}}/asgard/build
run: make test
- name: Show Log
if: failure()
working-directory: ${{runner.workspace}}/asgard/build/Testing/Temporary
run: cat LastTest.log
asgard-mkl:
# maybe an overkill but there are some differences between MKL and OpenBlas
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: install
working-directory: ${{runner.workspace}}/asgard
run: |
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install -y intel-oneapi-mkl-devel
- name: Makedir
working-directory: ${{runner.workspace}}/asgard
run: cmake -E make_directory build
- name: Configure
working-directory: ${{runner.workspace}}/asgard/build
run: cmake -DCMAKE_BUILD_TYPE=Release
-DASGARD_PRECISIONS=double
-DASGARD_RECOMMENDED_DEFAULTS=ON
../
- name: Build
working-directory: ${{runner.workspace}}/asgard/build
run: make -j VERBOSE=1
- name: Test
working-directory: ${{runner.workspace}}/asgard/build
run: make test
- name: Show Log
if: failure()
working-directory: ${{runner.workspace}}/asgard/build/Testing/Temporary
run: cat LastTest.log