Commit cdeaaf27 authored by Ralph Giles's avatar Ralph Giles
Browse files

github actions: Add a GNU autotools build.

This only runs on linux and macOS, but supports the important
`distcheck` target.

We ask homebrew to install libtool and pkg-config on macOS.
These are required for the autotools build, but aclocal
at least seems not to be available in the latest image.

We don't do a general homebrew update since that can take several
minutes, at least doubling the time it takes to runthhe job.
Just using the defaults the image provides is a better tradeoff.
parent 1708663a
name: Autotools
on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'
jobs:
build:
strategy:
matrix:
os:
[
ubuntu-latest,
macos-latest,
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install macOS dependencies
if: startsWith(matrix.os,'macos')
run: brew install automake pkg-config
- name: configure
run: |
./autogen.sh
./configure
- name: build
run: make
- name: test
run: make check
- name: distcheck
run: make distcheck
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment