-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (42 loc) · 1.23 KB
/
build-ubuntu-clang.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
name: build-ubuntu-clang
run-name: Build TRNG4 with Clang on Ubuntu
on: [ push, workflow_dispatch ]
jobs:
compile-trng4:
strategy:
matrix:
build-type: [ Debug, Release ]
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install build dependencies
run: |
sudo apt update
sudo apt install clang cmake ninja-build libtbb-dev libopenmpi-dev
clang --version
- name: Build TRNG4
run: |
mkdir build
cd build
cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX="$HOME/trng4" -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ..
cmake --build . -j
- name: Test TRNG4
run: |
cd build
ctest --output-on-failure
- name: Install TRNG4
run: |
cd build
cmake --build . --target install
- name: Pack TRNG4
run: |
cd build
cmake --build . --target package
- name: Test TRNG4
run: |
cd build
ctest --output-on-failure
- run: echo "This job's status is ${{ job.status }}."