diff options
author | Ralph Giles <giles@thaumas.net> | 2021-07-08 08:11:22 -0700 |
---|---|---|
committer | Ralph Giles <giles@thaumas.net> | 2021-07-09 22:23:51 -0700 |
commit | cdeaaf2740ab8fcf125bc6b9a441effa474055d7 (patch) | |
tree | f08f9e2f48ed22a9e3e7de84217f98e1e3b33d8f | |
parent | 1708663af915d38508cf2baeb24157c327d278d5 (diff) | |
download | ogg-git-cdeaaf2740ab8fcf125bc6b9a441effa474055d7.tar.gz |
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.
-rw-r--r-- | .github/workflows/autotools.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/autotools.yml b/.github/workflows/autotools.yml new file mode 100644 index 0000000..bfb7a60 --- /dev/null +++ b/.github/workflows/autotools.yml @@ -0,0 +1,40 @@ +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 |