view .github/workflows/autoconf.yml @ 1867:7a6c64c4f0ac

Add test for up-to-date configure script
author Matt Johnston <matt@ucc.asn.au>
date Sun, 30 Jan 2022 14:15:37 +0800
parents
children
line wrap: on
line source
# Checks that autoconf has been run if configure.ac was updated
# Assumes that autoconf 2.69 was run, the same as ubuntu 20.04
name: Autoconf Up To Date
on:
  pull_request:
  push:
    branches:
      - master
jobs:
  autoconf:
    runs-on: 'ubuntu-20.04'

    steps:
      - name: deps
        run: |
          sudo apt-get -y update
          sudo apt-get -y install autoconf

      - uses: actions/[email protected]

      - name: run autoconf
        run: autoconf && autoheader

      - name: check no difference
        run: git diff --exit-code