Skip to content

Makefile: Print 'LNK libmtdac.so' #97

Makefile: Print 'LNK libmtdac.so'

Makefile: Print 'LNK libmtdac.so' #97

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
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 34 / glibc 2.33 / gcc 11.2 / clang 12.0
# Fedora 35 / glibc 2.34 / gcc 11.2 / clang 13.0
fedora:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ 'fedora:34', 'fedora:35' ]
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