forked from quickfix/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.22 KB
/
build_test_autotools.yml
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
name: Build with Autotools
on: [pull_request, push]
jobs:
build:
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, macos-latest]
configuration: [Release]
compiler-settings: ['']
include:
- runner: ubuntu-latest
compiler-settings: CXX=clang++ CC=clang
- runner: macos-latest
compiler-settings: CXX=g++ CC=gcc
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install autoconf and automake for macOS
if: matrix.runner == 'macos-latest'
run: brew install autoconf automake
- name: Bootstrap
shell: bash
run: ./bootstrap
- name: Configure ${{ matrix.compiler-settings }}
shell: bash
run: ${{ matrix.compiler-settings }} ./configure
if: ${{ success() && matrix.compiler-settings != '' }}
- name: Configure
shell: bash
run: ./configure
if: ${{ success() && matrix.compiler-settings == '' }}
- name: Make
shell: bash
run: make
- name: Make check
shell: bash
run: make check