summaryrefslogtreecommitdiff
path: root/.github/workflows/distcheck.yml
blob: 1520598e68a86a730488376bb139aff53338fa9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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