diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 3a0ee4f..d665d79 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -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 @@ -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