Skip to content

Update GitHub Action workflows for new runner #42

Update GitHub Action workflows for new runner

Update GitHub Action workflows for new runner #42

name: CI - Build and Test
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-latest
features:
- --enable-debug --enable-manpages
- --enable-libnotify
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: >
libcurl4-openssl-dev
libnotify-dev
python3-docutils
- uses: actions/checkout@v3
- name: Create Build Environment
run: |
mkdir -p ${{ github.workspace }}/build
autoreconf --install
- name: Configure GNU Automake
working-directory: ${{ github.workspace }}/build
run: |
${{ github.workspace }}/configure ${{ matrix.features }}
- name: Build
working-directory: ${{ github.workspace }}/build
run: make && make check TESTS=
- name: Run Test
working-directory: ${{ github.workspace }}/build
run: make check
- name: Show Test Log
if: ${{ always() }}
working-directory: ${{ github.workspace }}/build
run: cat test/*.log