ref: e7e0acbd53af310b8671548427c2aea4a4a80c92
parent: 63ba465a1fd9df109f0cd25d244db4030305e51f
author: Ralph Giles <giles@thaumas.net>
date: Thu Jul 29 06:51:40 EDT 2021
github actions: Add autotools build description. Define a basic autotools build on Ubuntu and macOS hosts, so we have some test feedback for repositories hosted on Github, especially now that travis-ci.org is no longer supporting open source projects. Config based on the flac project.
--- /dev/null
+++ b/.github/workflows/action.yml
@@ -1,0 +1,55 @@
+name: GitHub CI
+
+on:
+ push:
+ pull_request:
+ schedule:
+ - cron: '0 0 1 * *'
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ name:
+ [
+ ubuntu-latest-autotools,
+ macos-latest-autotools,
+ ]
+ include:
+
+ - name: ubuntu-latest-autotools
+ os: ubuntu-latest
+ build-system: autotools
+
+ - name: macos-latest-autotools
+ os: macos-latest
+ build-system: autotools
+
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Linux dependencies
+ if: startsWith(matrix.os,'ubuntu')
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libopus-dev zip doxygen graphviz
+
+ - name: Install MacOS dependencies
+ if: startsWith(matrix.os,'macos')
+ run: |
+ brew install pkg-config opus
+
+ - name: Build with Autotools
+ if: startsWith(matrix.build-system,'autotools')
+ run: |
+ ./autogen.sh
+ ./configure
+ make
+ make check
+
+ - name: distcheck with Autotools
+ if: startsWith(matrix.build-system,'autotools')
+ run: |
+ make distcheck