Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 66 additions & 20 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Multi-platform CI
---
name: Build tests

on: [ push, pull_request, workflow_dispatch ]
on: [push, pull_request, workflow_dispatch]

jobs:
build:
build-glibc:

runs-on: ubuntu-latest
permissions: read-all
Expand All @@ -12,28 +13,73 @@ jobs:
matrix:
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install gnutls-dev libkeyutils-dev libnl-3-dev libnl-genl-3-dev libglib2.0-dev
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install \
gnutls-dev \
libkeyutils-dev \
libnl-3-dev \
libnl-genl-3-dev \
libglib2.0-dev

- name: Configure
run: |
./autogen.sh
./configure --with-systemd
- name: Configure
run: |
./autogen.sh
./configure --with-systemd

- name: Build
run: make
- name: Build
run: make

- name: Check
run: make check
- name: Check
run: make check

- name: Distcheck
run: make distcheck
- name: Distcheck
run: make distcheck

build-musl:

runs-on: ubuntu-latest
container: alpine:latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
apk update
apk add --no-cache \
build-base \
autoconf \
automake \
libtool \
gnutls-dev \
keyutils-dev \
libnl3-dev \
glib-dev \
linux-headers

- name: Configure
run: |
./autogen.sh
./configure --with-systemd

- name: Build
run: make

- name: Check
run: make check

- name: Distcheck
run: make distcheck