Skip to content

Commit

Permalink
add Github workflow for gcc on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
rabauke committed Oct 8, 2023
1 parent 0a66fd7 commit c24b725
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-ubuntu-gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build-ubuntu-gcc
run-name: Build TRNG4 with GCC on Ubuntu
on: [push, workflow_dispatch]
jobs:
compile-trng4:
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 g++ cmake ninja-build libtbb-dev libopenmpi-dev
g++ --version
- name: Build TRNG4
run: |
mkdir build
cd build
cmake -G Ninja -DCMAKE_INSTALL_PREFIX="$HOME/trng4" -DCMAKE_BUILD_TYPE=Debug ..
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 c24b725

Please sign in to comment.