-
Notifications
You must be signed in to change notification settings - Fork 39
75 lines (67 loc) · 2.29 KB
/
build-and-test.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
64
65
66
67
68
69
70
71
72
73
74
name: Build and test mapping coverage
on:
push:
branches: [ master ]
paths-ignore:
- '**/*.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**/*.md'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: DEBUG
jobs:
linux:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
compiler:
- { compiler: GNU, CC: gcc-11, CXX: g++-11 }
steps:
- name: Cancel Workflow Action
uses: styfle/[email protected]
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup apt
run: |
sudo apt install build-essential manpages-dev software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update && sudo apt install
- name: Install Requirements
run: sudo apt install -y
${{ matrix.compiler.CC }}
${{ matrix.compiler.CXX }}
libhts-dev
libjemalloc-dev
libgsl-dev
zlib1g-dev
libhts-dev
samtools
bedtools
- name: Build
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
# Build your program with the given configuration
run: cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=${BUILD_TYPE} && cmake --build build --
- name: Basic version test
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
run: build/bin/mashmap -v
- name: Align yeast genomes
run: ASAN_OPTIONS=detect_leaks=1:symbolize=1 LSAN_OPTIONS=verbosity=0:log_threads=1 build/bin/mashmap
-r data/scerevisiae8.fa.gz
-q data/scerevisiae8.fa.gz
--pi 95 -n 1 -Y '#'
--threads $(nproc --all)
-o scerevisiae8.paf;
- name: Test yeast coverage
run: scripts/test.sh data/scerevisiae8.fa.gz.fai scerevisiae8.paf 0.92