summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2022-05-28 16:06:29 -0700
committerRalph Giles <giles@thaumas.net>2022-05-30 20:32:03 -0700
commit91cb661e0b22298c0c5d89a45a788a00d2eede88 (patch)
tree07c3299fa73deacf71d8fd3b6656deee0c904c39 /.github
parent39e6e570d8ee589f8f692f348644e47ccef400cf (diff)
downloadflac-91cb661e0b22298c0c5d89a45a788a00d2eede88.tar.gz
Github actions: add make distcheck job
Add a github action to build and verify the traditional distribution source package with GNU Autotools, also known as `make distcheck`. This helps catch errors propagating required file list changes. Co-authored-by: Martijn van Beurden <mvanb1@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/distcheck.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/distcheck.yml b/.github/workflows/distcheck.yml
new file mode 100644
index 00000000..1520598e
--- /dev/null
+++ b/.github/workflows/distcheck.yml
@@ -0,0 +1,34 @@
+name: Autotools distcheck
+
+on:
+ push:
+ branches:
+ - main
+ - master
+ pull_request:
+
+jobs:
+ distcheck:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Linux dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libtool-bin libogg-dev doxygen libxml2-utils w3c-sgml-lib
+
+ - name: Build with Autotools
+ run: |
+ ./autogen.sh
+ ./configure
+
+ - name: Build and check source package
+ run: make distcheck
+
+ - name: Upload logs on failure
+ uses: actions/upload-artifact@v2
+ if: failure()
+ with:
+ name: flac-${{ github.sha }}-${{ github.run_id }}-logs
+ path: ./**/*.log