-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (57 loc) · 1.85 KB
/
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
name: test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: setup_conda
run: |
if [ `uname` == Darwin ]; then
export conda_url=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
else
export conda_url=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
fi
wget $conda_url -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
source "$HOME/miniconda/etc/profile.d/conda.sh"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda info -a
conda install -c conda-forge mamba
if [ `uname` == Darwin ]; then
export toolchain=clangxx_osx-64
else
export toolchain=gxx_linux-64
fi
mamba create -q -n test-environment -c conda-forge -c bioconda -y meson clang $toolchain samtools
- name: setup_meson
run: |
source "$HOME/miniconda/etc/profile.d/conda.sh"
hash -r
conda activate test-environment
if [ `uname` == Darwin ]; then
meson setup --buildtype=release --unity on builddir
else
env CC=clang CXX=clang meson setup --buildtype=release --unity on builddir
fi
- name: meson_compile
run: |
source "$HOME/miniconda/etc/profile.d/conda.sh"
hash -r
conda activate test-environment
cd builddir
meson compile
- name: meson_test
run: |
source "$HOME/miniconda/etc/profile.d/conda.sh"
hash -r
conda activate test-environment
cd builddir
meson test