Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add actions workflows to check compilation on glibc and musl (devuan, alpine) #206

Merged
merged 2 commits into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
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
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# this can and should be optimized, the setup steps can be cached in docker,
# and that should be broken out, annoyingly, though, I can't do that with
# proper interjob dependency tracking without exposing tokens to third parties
# possibly
name: test whether eudev builds

on:
push:
branches: '*'
pull_request:
branches: '*'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: ['dyne/devuan:beowulf', 'alpine:latest']
container:
image: ${{ matrix.distro }}
steps:
- name: install prerequisites (alpine)
if: ${{ matrix.distro == 'alpine:latest' }}
run: >-
apk --no-cache add \
build-base \
gperf \
glib-dev \
linux-headers \
kmod-dev \
gobject-introspection-dev \
util-linux-dev \
perl \
autoconf \
libxslt \
automake

- name: install prerequisites (devuan)
if: ${{ matrix.distro == 'dyne/devuan:beowulf' }}
run: >-
apt-get update && apt-get install -y \
build-essential \
libblkid-dev \
libkmod-dev \
libselinux1-dev \
autoconf \
automake \
xsltproc \
gperf \
libglib-object-introspection-perl \
libglib2.0-dev \
linux-headers-amd64 \
libtool

- name: checkout
uses: actions/checkout@v2
- name: generate configure script
run: ./autogen.sh
- name: configure
run: ./configure
- name: make
run: make -j$(($(nproc)+1))
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

set -xe
autoreconf -f -i -s

cd man
Expand Down