Skip to content

Merge pull request #16 from hu-macsy/read_graph_loop_option #114

Merge pull request #16 from hu-macsy/read_graph_loop_option

Merge pull request #16 from hu-macsy/read_graph_loop_option #114

Workflow file for this run

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