-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (37 loc) · 927 Bytes
/
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
name: Tests
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Install htslib
run: |
wget https://github.com/samtools/htslib/releases/download/1.17/htslib-1.17.tar.bz2
tar -xvf htslib-1.17.tar.bz2
cd htslib-1.17
./configure --prefix=`pwd`
make
make install
echo LIBRARY_PATH=`pwd`:$LIBRARY_PATH >> $GITHUB_ENV
echo LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH >> $GITHUB_ENV
- name: Make vcfdist
run: |
cp -r htslib-1.17/htslib src
echo $LIBRARY_PATH
echo $LD_LIBRARY_PATH
cd src
make
./vcfdist -v
- name: Test vcfdist
run: |
sudo apt-get install -y libgtest-dev
cd tests
make
./test_vcfdist