-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (50 loc) · 1.61 KB
/
ci.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
name: Run Builds and Tests
on: [push, pull_request]
jobs:
linux-build-latest-with-gcc:
name: "Linux gcc-11"
runs-on: ubuntu-24.04
steps:
- name: Install prerequisites
run: |
sudo apt-get update
sudo apt-get install ninja-build gcc-11 g++-11 mpich
g++ --version
- name: Checkout gdsb
uses: actions/checkout@v4
with:
submodules: true
- name: build library and run tests (no MPI functionality)
run: |
[ ! -d build ] && mkdir build
cd build
cmake -DGDSB_MPI=OFF -DGDSB_TEST=ON -DCMAKE_CXX_COMPILER=g++-11 -GNinja ..
ninja
./gdsb_test
- name: build library with MPI functionality and run MPI tests
run: |
[ ! -d build ] && mkdir build
cd build
cmake -DGDSB_MPI=ON -DGDSB_TEST=ON -DCMAKE_CXX_COMPILER=g++-11 -GNinja ..
ninja
./gdsb_mpi_test
macos-build-latest-with-clang:
name: "macOS clang"
runs-on: macos-14
steps:
- name: Install prerequisites
run: |
brew install ninja
brew install libomp
brew install llvm
- name: Checkout gdsb
uses: actions/checkout@v4
with:
submodules: true
- name: build library and run tests (no MPI functionality)
run: |
[ ! -d build ] && mkdir build
cd build
cmake -DGDSB_MPI=OFF -DGDSB_TEST=ON -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -GNinja ..
ninja
./gdsb_test