Marco Sirabella bea7349211 Use AX_WITH_CURSES for curses library discovery
Properly discovers libtinfow for customized systems (e.g., Gentoo) while
offloading search handling to autoconf builtins.

Additionally adds autoconf-archive as a buildtime dependency.

Fixes #250.

Signed-off-by: Marco Sirabella <marco@sirabella.org>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2021-11-07 11:36:59 -05:00

51 lines
1.1 KiB
YAML

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 autoconf-archive
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 install autoconf-archive
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