From 3e8bba2fd1e71899adaa88fc1fbdeacd7b51815e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 3 Apr 2021 14:09:49 -0400 Subject: Replace Travis CI with GitHub Actions configuration Replace the Travis CI configuration with an equivalent GitHub Actions workflow. Signed-off-by: Lukas Fleischer --- .github/workflows/make.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/make.yml (limited to '.github') diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml new file mode 100644 index 0000000..cbbe996 --- /dev/null +++ b/.github/workflows/make.yml @@ -0,0 +1,49 @@ +name: Build and test + +on: + push: + branches: [master, pu] + paths-ignore: + - 'contrib/**' + - 'doc/**' + - 'po/**' + pull_request: + branches: [master, pu] + paths-ignore: + - 'contrib/**' + - 'doc/**' + - 'po/**' + +jobs: + build: + strategy: + matrix: + os: ['ubuntu-latest', 'macos-latest'] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Install dependencies (Ubuntu) + run: sudo apt-get install asciidoc autopoint gettext xmlto + if: matrix.os == 'ubuntu-latest' + - name: Install dependencies (MacOS) + run: | + brew update + brew install automake + brew install asciidoc + brew install gettext + brew install xmlto + brew link --force gettext + sudo mkdir /etc/xml + sudo ln -s /usr/local/etc/xml/catalog /etc/xml/catalog + if: matrix.os == 'macos-latest' + - name: autogen.sh + run: ./autogen.sh + - name: configure + run: ./configure + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck -- cgit v1.2.3-54-g00ecf