generated from Warchant/cmake-hunter-seed
-
Notifications
You must be signed in to change notification settings - Fork 36
46 lines (44 loc) · 1.34 KB
/
lsan.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
name: LSAN
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
name: checkout repo
- name: cache
uses: actions/[email protected]
env:
cache-name: cache-filecoin-ffi-proofs
version: v28
with:
path: /var/tmp/filecoin-proof-parameters
key: build-${{ env.cache-name }}-${{ env.version }}
- name: install
run: |
sudo apt-get update
sudo apt-get install -y ninja-build python-setuptools pkg-config ocl-icd-* opencl-headers libhwloc-dev libhidapi-dev
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install scikit-build cmake requests gitpython gcovr pyyaml
- name: cmake
env:
CC: "clang"
CXX: "clang++"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # has to be included to access other secrets
GITHUB_HUNTER_USERNAME: ${{ secrets.HUNTER_USERNAME }}
GITHUB_HUNTER_TOKEN: ${{ secrets.HUNTER_TOKEN }}
run: cmake . -GNinja -Bbuild -D LSAN=ON -D TESTING_PROOFS=ON -D TESTING_ACTORS=ON
- name: build
run: cmake --build build -- -j2
- name: run tests
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: cmake --build build --target test