forked from alibaba/libgrape-lite
-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (60 loc) · 2.07 KB
/
c-cpp.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: C++ CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache maven packages
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install Dependencies for Linux
if: runner.os == 'Linux'
run: |
# microsoft repo in 18.04 is broken
# sudo apt update -y
sudo apt install -y libmpich-dev libgoogle-glog-dev libgflags-dev librdkafka-dev
- name: Install Dependencies for macOS
if: runner.os == 'macOS'
run: |
sudo scutil --set HostName my_computer.local
echo '127.0.0.1 my_computer.local' | sudo tee -a /etc/hosts
brew install mpich glog gflags librdkafka
# install cmake 3.20 for a temporary fix for https://gitlab.kitware.com/cmake/cmake/-/issues/21955
wget https://github.com/Kitware/CMake/releases/download/v3.20.0-rc5/cmake-3.20.0-rc5-macos-universal.tar.gz
tar zxf cmake-3.20.0-rc5-macos-universal.tar.gz
sudo ln -sf $(pwd)/cmake-3.20.0-rc5-macos-universal/CMake.app/Contents/bin/cmake `which cmake`
- name: Build
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_ASAN=ON
make cpplint
make
- name: App Test
if: runner.os == 'Linux'
run: |
export ASAN_OPTIONS=detect_leaks=0 # as a temporary fix
./misc/app_tests.sh
- name: Sampler Test
if: runner.os == 'Linux'
run: |
./misc/sampler_test.sh
- name: Run LDBC
if: runner.os == 'Linux'
run: |
./ldbc_driver/run_ldbc.sh ci
- name: Upload Coverage
if: runner.os == 'Linux'
uses: codecov/codecov-action@v1
with:
flags: app_tests