-
Notifications
You must be signed in to change notification settings - Fork 49
92 lines (82 loc) · 2.02 KB
/
ci_workflows.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: CI
on:
push:
branches:
- master
tags:
- '*'
pull_request:
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: linux (with gcc)
os: ubuntu-latest
- name: MacOS (with clang)
os: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
if: contains(matrix.os, 'macos')
run: brew install autoconf automake libtool
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --disable-shared
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
tests-meson:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: linux (with gcc and meson)
os: ubuntu-latest
- name: MacOS (with clang and meson)
os: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: |
if [ "$RUNNER_OS" = Linux ]; then
sudo apt-get -y install meson ninja-build
else
brew install meson autoconf automake libtool
fi
- name: configure
run: meson setup builddir --fatal-meson-warnings
- name: build
run: ninja -C builddir
- name: check
run: meson test -C builddir
- name: distcheck
run: meson dist -C builddir
Windows-meson:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run: pip install --pre meson ninja
- uses: ilammy/msvc-dev-cmd@v1
- name: configure
run: meson setup builddir --fatal-meson-warnings -Ddefault_library=static
- name: build
run: ninja -C builddir
- name: check
run: meson test -C builddir