-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (59 loc) · 2 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
59
60
61
62
63
64
65
66
67
68
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
g++ --version
- name: Checkout dhb
uses: actions/checkout@v4
with:
submodules: true
- name: build library, 32 bit IDs, run test
run: |
[ ! -d build ] && mkdir build
cd build
mkdir gcc
cd gcc
cmake -GNinja -DDHB_BUILD_TESTS=ON -DDHB_WITH_64BIT_IDS=OFF -DCMAKE_CXX_COMPILER=g++-11 ../../
ninja
./dhb_test
- name: build library, 64 bit IDs, run test
run: |
[ ! -d build ] && cd build/gcc
cmake -GNinja -DDHB_BUILD_TESTS=ON -DDHB_WITH_64BIT_IDS=ON -DCMAKE_CXX_COMPILER=g++-11 ../../
ninja
./dhb_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 dhb
uses: actions/checkout@v4
with:
submodules: true
- name: build library, 32 bit IDs, run test
run: |
[ ! -d build ] && mkdir build
cd build
mkdir clang
cd clang
cmake -GNinja -DDHB_BUILD_TESTS=ON -DDHB_WITH_64BIT_IDS=OFF -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang ../../
ninja
./dhb_test
- name: build library, 64 bit IDs, run test
run: |
[ ! -d build ] && cd build/clang
cmake -GNinja -DDHB_BUILD_TESTS=ON -DDHB_WITH_64BIT_IDS=ON -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang ../../
ninja
./dhb_test