forked from vcflib/vcflib
-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (58 loc) · 1.78 KB
/
ci_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
name: Vcflib CI
on: [push, pull_request]
jobs:
arch:
name: vcflib-CI
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
steps:
- name: apt update
run: sudo apt-get -o Acquire::Retries=3 update
- name: install dependencies
run: sudo apt-get -o Acquire::Retries=3 install -y -V
cmake
libhts-dev
libtabixpp-dev
libtabixpp0
pybind11-dev
- uses: actions/checkout@v3
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: install zig using wget
run: |
wget -q https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz
tar xf zig-linux-x86_64-*.tar.xz
./zig-linux-x86_64-*/zig version
pwd
ls -l zig-linux-*
echo "$(pwd)/zig-linux-x86_64-0.13.0" >> $GITHUB_PATH
# echo "$(pwd)/zig-linux-x86_64-*" >> $GITHUB_PATH
# echo "::add-path::./zig-linux*"
echo GITHUB_PATH=$GITHUB_PATH
# zig version
# echo "{environment_variable_name}={value}" >> $GITHUB_ENV
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Configure
run: |
echo $(pwd)/zig-linux-x86_64-* >> $GITHUB_PATH
echo "$(pwd)/zig-linux-x86_64-0.13.0" >> $GITHUB_PATH
echo GITHUB_PATH=$GITHUB_PATH
echo PATH=$PATH
zig version
mkdir -p build
cd build
# cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWFA_GITMODULE=ON ..
- name: Compile
run: cmake --build build/ --verbose -- -j 2
- name: Run tests
run: |
cd build
ctest --verbose