2020-12-20 18:24:33 +00:00
|
|
|
#
|
2021-01-10 17:53:38 +00:00
|
|
|
# Copyright (C) 2020,2021 CismonX <admin@cismon.net>
|
2020-12-20 18:24:33 +00:00
|
|
|
#
|
|
|
|
# Copying and distribution of this file, with or without modification, are
|
|
|
|
# permitted in any medium without royalty, provided the copyright notice and
|
|
|
|
# this notice are preserved. This file is offered as-is, without any warranty.
|
|
|
|
#
|
|
|
|
|
2020-12-20 18:44:42 +00:00
|
|
|
name: build
|
2020-12-20 18:24:33 +00:00
|
|
|
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build library
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
env:
|
|
|
|
packages: autoconf automake libtool autoconf-archive dejagnu
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies (apt)
|
|
|
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
|
|
run: |
|
|
|
|
sudo apt update -qq
|
|
|
|
sudo apt install -qq ${packages}
|
2020-12-20 18:44:42 +00:00
|
|
|
- name: Install dependencies (Homebrew)
|
2020-12-20 18:24:33 +00:00
|
|
|
if: ${{ matrix.os == 'macos-latest' }}
|
|
|
|
run: |
|
|
|
|
brew update
|
|
|
|
brew install ${packages}
|
|
|
|
- name: Configure build
|
|
|
|
run: |
|
|
|
|
autoreconf --install
|
|
|
|
./configure CFLAGS='-O0 -g -Wall -Wextra -Wpedantic'
|
|
|
|
- name: Compile
|
|
|
|
run: make
|
|
|
|
- name: Run tests
|
|
|
|
run: make check
|