forked from jaak-s/macau
-
Notifications
You must be signed in to change notification settings - Fork 14
68 lines (60 loc) · 1.73 KB
/
build_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
name: build on linux
on:
push:
branches:
- master
- release-*
- v*
pull_request:
branches:
- master
jobs:
Ubuntu_Latest_Apt:
runs-on: ubuntu-latest
strategy:
matrix:
build.type:
- Debug
- Release
- RelNoOpenMP
- RelWithDebInfo
steps:
- name: checkout
uses: actions/checkout@v4.1.0
- name: install dependencies
run: |-
sudo apt-get update
sudo apt-get install -y cmake wget ninja-build libblas-dev liblapack-dev liblapacke-dev libboost-all-dev libopenmpi-dev libeigen3-dev libhdf5-dev
sudo apt-get clean all
- name: Install Catch v3
run: |
cd /tmp
wget -O Catch2.tar.gz https://github.com/catchorg/Catch2/archive/refs/tags/v3.6.0.tar.gz
tar xzf Catch2.tar.gz
rm Catch2.tar.gz
cd Catch2*
cmake -S . -B build -DBUILD_TESTING=OFF
cmake --build build
sudo cmake --install build
- name: Install HighFive
run: |
cd /tmp
wget -O HighFive.tar.gz https://github.com/BlueBrain/HighFive/archive/v2.9.0.tar.gz
tar xzf HighFive.tar.gz
rm HighFive.tar.gz
cd HighFive*
cmake -DHIGHFIVE_EXAMPLES=OFF -DHIGHFIVE_USE_BOOST=OFF -DHIGHFIVE_UNIT_TESTS=OFF -S . -B build
cmake --build build
sudo cmake --install build
- name: Run CMake
run: |-
cmake -S . -B build.${{ matrix.build.type }} -DCMAKE_BUILD_TYPE=${{ matrix.build.type }} -DENABLE_PYTHON=OFF
- name: Build
run: |-
cmake --build build.${{ matrix.build.type }}
- name: Install
run: |-
sudo cmake --install build.${{ matrix.build.type }}
- name: Run tests
run: |-
smurff --bist