-
Notifications
You must be signed in to change notification settings - Fork 279
52 lines (45 loc) · 1.68 KB
/
Copy pathcontainer-build.yml
File metadata and controls
52 lines (45 loc) · 1.68 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
name: Containers
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
Containers:
# comment out if we're using the cache
runs-on: ubuntu-latest
container: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
os: ['alpine', 'archlinux', 'centos', 'rockylinux', 'opensuse']
include:
- os: alpine
image: ghcr.io/samtools/alpine-for-htslib-ci:latest
- os: archlinux
image: ghcr.io/samtools/archlinux-for-htslib-ci:latest
- os: centos
image: ghcr.io/samtools/centos-for-htslib-ci:latest
- os: rockylinux
image: ghcr.io/samtools/rockylinux-for-htslib-ci:latest
- os: opensuse
image: ghcr.io/samtools/opensuse-for-htslib-ci:latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Clone htslib
run: |
git config --global --add safe.directory `pwd`
htslib_pr=`git log -2 --format='%s' | sed -n 's/.*htslib#\([0-9]*\).*/\1/p'`
.ci_helpers/clone ${GITHUB_REPOSITORY_OWNER} htslib htslib ${GITHUB_HEAD_REF:-$GITHUB_REF_NAME} $htslib_pr
- name: Configure bcftools
run: |
autoreconf -i
./configure --enable-werror CFLAGS="-g -O3 -std=gnu99 ${{ matrix.cflags }}"
- name: Build htslib and bcftools
run: |
make -j5
- name: Test
run: |
make check