-
Notifications
You must be signed in to change notification settings - Fork 15
69 lines (54 loc) · 1.6 KB
/
Copy pathmain.yml
File metadata and controls
69 lines (54 loc) · 1.6 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
# Derived from GitHub's c-cpp.yml file
name: Autoconf CI
on: [push, pull_request]
jobs:
linux-build:
runs-on: ubuntu-latest
defaults:
run:
# The default for anything that doesn't override it (eg htslib)
working-directory: ./iolib
steps:
- name: io_lib checkout
uses: actions/checkout@v6
with:
path: iolib
- name: deps
working-directory: .
run: |
sudo apt-get update
sudo apt-get install -y --no-install-suggests --no-install-recommends zlib1g-dev libdeflate-dev libbz2-dev liblzma-dev libcurl4-gnutls-dev libssl-dev
- name: htslib checkout
uses: actions/checkout@v6
with:
repository: samtools/htslib
ref: master
submodules: true
path: hidden-htslib
- name: htslib build
working-directory: hidden-htslib
run: |
autoreconf -i && ./configure --prefix=/usr && make -j5
sudo make install
- name: configure
run: ./bootstrap; ./configure; # CC="gcc -fsanitize=address"
- name: make
run: make -j5
- name: make check
run: make check
#- name: make distcheck
# run: make distcheck
osx-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Update Homebrew packages
run: |
brew update --auto-update
brew install --overwrite autoconf automake libtool htslib libdeflate
- name: configure
run: ./bootstrap; ./configure CPPFLAGS=-I/opt/homebrew/include --with-htslib=/opt/homebrew
- name: make
run: make -j5
- name: make check
run: make check