mirror of
https://github.com/bgp/bgpq4.git
synced 2024-05-11 05:55:05 +00:00
Add matrix builds.
This commit is contained in:
19
.github/images/centos.Dockerfile
vendored
Normal file
19
.github/images/centos.Dockerfile
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
ARG image=centos:8
|
||||
FROM $image
|
||||
|
||||
# Install dependencies
|
||||
RUN yum update -y
|
||||
RUN yum groupinstall -y 'Development Tools'
|
||||
RUN yum install -y autoconf automake findutils
|
||||
|
||||
# Add source code
|
||||
ADD . /src
|
||||
WORKDIR /src
|
||||
|
||||
# Run steps
|
||||
RUN ./bootstrap
|
||||
RUN ./configure
|
||||
RUN make
|
||||
RUN make check
|
||||
RUN make distcheck
|
||||
|
1
.github/images/centos:7.Dockerfile
vendored
Symbolic link
1
.github/images/centos:7.Dockerfile
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
centos.Dockerfile
|
1
.github/images/centos:8.Dockerfile
vendored
Symbolic link
1
.github/images/centos:8.Dockerfile
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
centos.Dockerfile
|
22
.github/images/debian.Dockerfile
vendored
Normal file
22
.github/images/debian.Dockerfile
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
ARG image=debian:buster
|
||||
FROM $image
|
||||
|
||||
# From https://github.com/docker-library/postgres/blob/69bc540ecfffecce72d49fa7e4a46680350037f9/9.6/Dockerfile#L21-L24
|
||||
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
|
||||
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
||||
ENV LANG en_US.utf8
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y build-essential autoconf automake markdown && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Add source code
|
||||
ADD . /src
|
||||
WORKDIR /src
|
||||
|
||||
# Run steps
|
||||
RUN ./bootstrap
|
||||
RUN ./configure
|
||||
RUN make
|
||||
RUN make check
|
||||
RUN make distcheck
|
||||
|
1
.github/images/debian:buster.Dockerfile
vendored
Symbolic link
1
.github/images/debian:buster.Dockerfile
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
debian.Dockerfile
|
1
.github/images/debian:stretch.Dockerfile
vendored
Symbolic link
1
.github/images/debian:stretch.Dockerfile
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
debian.Dockerfile
|
1
.github/images/fedora:30.Dockerfile
vendored
Symbolic link
1
.github/images/fedora:30.Dockerfile
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
centos.Dockerfile
|
1
.github/images/fedora:31.Dockerfile
vendored
Symbolic link
1
.github/images/fedora:31.Dockerfile
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
centos.Dockerfile
|
1
.github/images/ubuntu:bionic.Dockerfile
vendored
Symbolic link
1
.github/images/ubuntu:bionic.Dockerfile
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
debian.Dockerfile
|
1
.github/images/ubuntu:xenial.Dockerfile
vendored
Symbolic link
1
.github/images/ubuntu:xenial.Dockerfile
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
debian.Dockerfile
|
23
.github/workflows/matrixbuild.yml
vendored
Normal file
23
.github/workflows/matrixbuild.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Build and test (linux matrix)
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
dockerenv:
|
||||
- debian:buster
|
||||
- debian:stretch
|
||||
- ubuntu:bionic
|
||||
- ubuntu:xenial
|
||||
- centos:8
|
||||
- centos:7
|
||||
- fedora:31
|
||||
- fedora:30
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Run build on ${{matrix.dockerenv}}
|
||||
run: docker build . --file .github/images/${{matrix.dockerenv}}.Dockerfile --build-arg image=${{matrix.dockerenv}}
|
Reference in New Issue
Block a user