-
Notifications
You must be signed in to change notification settings - Fork 11
70 lines (68 loc) · 1.75 KB
/
dnmtools_build_ubuntu.yml
File metadata and controls
70 lines (68 loc) · 1.75 KB
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
68
69
70
name: DNMTools build (Ubuntu)
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-with-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgsl-dev \
libcurl4-gnutls-dev \
libdeflate-dev \
liblzma-dev \
zlib1g-dev \
libbz2-dev
- name: Build and install htslib (for recent version)
run: |
git clone --recursive https://github.com/samtools/htslib.git
cd htslib
make -j4
sudo make install prefix=/usr
- name: Generate configure script
run: ./autogen.sh
- name: Configure for GCC
run: ./configure CXX="g++"
- name: Build with g++
run: make -j4
- name: Test the g++ build
run: make -j4 check
build-with-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgsl-dev \
libcurl4-gnutls-dev \
libdeflate-dev \
liblzma-dev \
zlib1g-dev \
libbz2-dev
- name: Build and install htslib (for recent version)
run: |
git clone --recursive https://github.com/samtools/htslib.git
cd htslib
make -j4
sudo make install prefix=/usr
- name: Generate configure script
run: ./autogen.sh
- name: Configure for Clang
run: ./configure CXX="clang++"
- name: Build with clang++
run: make -j4
- name: Test the clang++ build
run: make -j4 check