-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (58 loc) · 2.31 KB
/
build.yml
File metadata and controls
61 lines (58 loc) · 2.31 KB
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
name: C/C++ CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler:
- { name: Clang-simulated, cc: clang, cxx: clang++, failure-simulation: ON, id-randomization: OFF}
- { name: GNU-real, cc: gcc-10, cxx: g++-10, failure-simulation: OFF, id-randomization: ON}
build-mode: [Debug, Release]
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- name: submodules
run: git submodule init && git submodule update
- uses: actions/cache@v2
id: ulfm-cache
with:
path: ~/ulfm
key: ${{ runner.os }}-ulfm
- name: ulfm
if: steps.ulfm-cache.outputs.cache-hit != 'true'
run: git clone --recursive https://bitbucket.org/icldistcomp/ulfm2.git && cd ulfm2 && ./autogen.pl && ./configure --prefix="$HOME/ulfm" --enable-mpi-fortran=no --with-pmi2 --with-ucx=no && make -j && make install
- name: mkdir
run: mkdir build && cd build
- name: cmake
run: cd build && PATH="$HOME/ulfm/bin:$PATH"; CPATH="$HOME/ulfm/src:$CPATH"; LD_LIBRARY_PATH="$HOME/ulfm/lib:$LD_LIBRARY_PATH"; MPI_ROOT="$HOME/ulfm"; cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-mode }} -DReStore_ID_RANDOMIZATION=${{ matrix.compiler.id-randomization }} -DReStore_SIMULATE_FAILURES=${{ matrix.compiler.failure-simulation }} -DReStore_WARNINGS_ARE_ERRORS=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DCMAKE_C_COMPILER=${{ matrix.compiler.cc }}
- name: make
run: cd build && make -j all
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-cache
- name: Cache installed libs
uses: actions/cache@v2
with:
path: ~/.local/lib/python*
key: ${{ runner.os }}-pip-libs
- name: Install networkit dependencies
run: pip install cython numpy scipy wheel pandas
- name: Install networkit
run: pip install networkit
- name: make check
if: (matrix.compiler.name == 'Clang-simulated' && matrix.build-mode == 'Release') || (matrix.compiler.name == 'GNU-real' && matrix.build-mode == 'Debug')
run: cd build && make check