Skip to content

github/workflows: Update some builders #100

github/workflows: Update some builders

github/workflows: Update some builders #100

Workflow file for this run

name: Builds
on:
push:
branches: master
paths:
- Makefile
- 'include/libmtdac/**'
- 'src/**'
- '.github/workflows/build_tests.yaml'
pull_request:
branches: master
paths:
- Makefile
- 'include/libmtdac/**'
- 'src/**'
- '.github/workflows/build_tests.yaml'
jobs:
# GitHub Currently only supports running directly on Ubuntu,
# for any other Linux we need to use a container.
# CentOS 7 / glibc 2.17 / gcc 4.8.5
centos_7:
runs-on: ubuntu-latest
container:
image: centos:7
steps:
- name: Install tools/deps
run: yum -y install gcc make jansson-devel libcurl-devel
- uses: actions/checkout@v2
- name: make
# Fudge the version seeing as we don't actually have a git
# repository here due to needing git 2.18+. The version
# number is not actually important to just test the build.
run: CFLAGS=-Werror make GIT_VERSION=\\\"v0.0.0\\\" V=1
# Rocky Linux 8 (RHEL clone) / glibc 2.28 / gcc 8.5.0
rocky-linux-8:
runs-on: ubuntu-latest
container:
image: rockylinux:8
steps:
- name: Install tools/deps
run: yum -y install git gcc make jansson-devel libcurl-devel
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: make
run: |
git config --global --add safe.directory /__w/libmtdac/libmtdac
CFLAGS=-Werror make V=1
# Debian 11 / glibc 2.31 / gcc 10.2
debian_11:
runs-on: ubuntu-latest
container:
image: debian:11
steps:
- name: Install deps
run: |
apt-get -y update
apt-get -y install git gcc make libjansson-dev libcurl4-openssl-dev
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: make
run: |
git config --global --add safe.directory /__w/libmtdac/libmtdac
CFLAGS=-Werror make V=1
# Alpine Linux with musl libc and GCC
alpine:
runs-on: ubuntu-latest
container:
image: alpine:edge
steps:
- name: Install tools/deps
run: apk add build-base linux-headers git jansson-dev curl-dev
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: make
run: |
git config --global --add safe.directory /__w/libmtdac/libmtdac
CFLAGS=-Werror make V=1
# Fedora 37 / glibc 2.36 / gcc 12.1 / clang 15
# Fedora 38 / glibc 2.37 / gcc 13.1 / clang 16
fedora:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ 'fedora:37', 'fedora:38' ]
compiler: [ 'gcc', 'clang' ]
container:
image: ${{ matrix.os }}
steps:
- name: Install tools/deps
run: dnf -y install git ${{ matrix.compiler }} make jansson-devel libcurl-devel
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: make CC=${{ matrix.compiler }}
run: |
git config --global --add safe.directory /__w/libmtdac/libmtdac
CFLAGS=-Werror make CC=${{ matrix.compiler }} V=1