Build by matrix #553
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build by matrix | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: | | |
0 0 * * * | |
jobs: | |
ubuntu: | |
name: Build on ${{matrix.container }} | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
strategy: | |
matrix: | |
container: ['ubuntu:jammy'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
apt update -qq | |
apt install -qqy build-essential libcurl4-openssl-dev libjansson-dev linux-libc-dev libtool autoconf git bzip2 clang-format | |
- name: Build and Install | |
run: | | |
make build install | |
debian: | |
name: Build on ${{matrix.container }} | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
strategy: | |
matrix: | |
container: ['debian:buster'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
apt-get update -qq | |
apt-get install -qqy glibc-source gcc make libcurl4-gnutls-dev libjansson-dev bzip2 unzip debhelper dh-make devscripts cdbs clang apt-utils | |
- name: Build and Install | |
run: | | |
make build install | |
# centos: | |
# name: Build on ${{matrix.container }} | |
# runs-on: ubuntu-latest | |
# container: ${{ matrix.container }} | |
# strategy: | |
# matrix: | |
# container: ['centos:7'] | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Install packages | |
# run: | | |
# grep "8." /etc/centos-release && \ | |
# sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror/baseurl=http:\/\/vault/g' /etc/yum.repos.d/CentOS-*repo | |
# yum install -y gcc make libcurl-devel jansson-devel bzip2 unzip rpmdevtools epel-release selinux-policy-devel | |
# - name: Build and Install | |
# run: | | |
# make build install |