File: ci_test.yml

package info (click to toggle)
libvcflib 1.0.12%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 70,508 kB
  • sloc: cpp: 39,837; python: 532; perl: 474; ansic: 317; ruby: 295; sh: 254; lisp: 148; makefile: 123; javascript: 94
file content (59 lines) | stat: -rw-r--r-- 1,822 bytes parent folder | download | duplicates (2)
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