-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (44 loc) · 1.17 KB
/
build-and-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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