-
Notifications
You must be signed in to change notification settings - Fork 51
38 lines (34 loc) · 971 Bytes
/
build-tests.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
name: build-tests
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master ]
workflow_dispatch:
inputs:
git-ref:
description: Git SHA-1 commit hash (optional)
required: false
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-latest ]
compiler: [ clang, gcc ]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update;sudo apt-get install -y libbz2-dev liblzma-dev libcurl4-openssl-dev
git clone --depth=1 https://github.com/ANGSD/smallBam.git
git clone --depth=1 --recursive https://github.com/samtools/htslib
- name: Compile dependencies (htslib)
run: |
cd htslib;make
- name: Compile main program (angsd and misc/*)
run: |
make HTSSRC=htslib/
- name: Run Unit tests
run: |
make test BAMDIR=./smallBam/