Skip to content

Commit

Permalink
add Github workflow for clang on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
rabauke committed Oct 8, 2023
1 parent 0d82b85 commit dfbc6b2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-ubuntu-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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@v3
with:
submodules: recursive
- name: Install build dependencies
run: |
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
cmake --build . --target install
- name: Test TRNG4
run: |
cd build
ctest --output-on-failure
- run: echo "This job's status is ${{ job.status }}."

0 comments on commit dfbc6b2

Please sign in to comment.