-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (58 loc) · 1.46 KB
/
build.yaml
File metadata and controls
69 lines (58 loc) · 1.46 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
make_flags:
description: Extra flags to pass to make
required: false
default: ''
jobs:
build-and-test:
name: Build and run `make check`
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
autoconf \
automake \
libtool \
build-essential \
libfyaml-dev
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew update
brew install \
autoconf \
automake \
libtool \
argp-standalone \
libfyaml
- name: Bootstrap autotools
run: ./autogen.sh
- name: Configure
run: ./configure
- name: Build
run: make ${{ github.event.inputs.make_flags }}
- name: Check
run: make check ${{ github.event.inputs.make_flags }}
- name: Output test logs on failure
if: failure()
run: |
tail -n +1 tests/*.log
tail -n +1 tests/tmp/*.out.txt