-
Notifications
You must be signed in to change notification settings - Fork 25
109 lines (94 loc) · 2.39 KB
/
build.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
on:
workflow_dispatch:
push:
paths-ignore:
- 'build/**'
- 'doc/**'
branches:
- master
pull_request:
paths-ignore:
- 'build/**'
- 'doc/**'
branches:
- master
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- id: checkout
uses: actions/checkout@v2
- id: cache-ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: linux
- name: Install dependencies
run: |
sudo apt install -y --no-install-recommends \
meson \
check
- name: Full Build
uses: BSFishy/[email protected]
with:
action: test
directory: output/full
setup-options: -Ddocumentation=false -Dtest=true
options: --verbose
- name: Mini Build
uses: BSFishy/[email protected]
with:
action: test
directory: output/mini
setup-options: -Ddocumentation=false -Dtest=true -Dtcp=false
options: --verbose
build-macos:
runs-on: macos-latest
steps:
- id: checkout
uses: actions/checkout@v2
- id: cache-ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: macos
- uses: actions/setup-python@v1
- name: Install dependencies
run: |
brew install \
meson ninja \
check
- name: Meson Build
uses: BSFishy/[email protected]
with:
action: test
directory: output
setup-options: -Ddocumentation=false -Dtest=true
options: --verbose
build-windows:
runs-on: windows-latest
steps:
- id: checkout
uses: actions/checkout@v2
- name: Meson Build
uses: BSFishy/[email protected]
with:
action: build
directory: output
setup-options: -Ddocumentation=false
options: --verbose
meson-version: 1.3.0
build-windows-msvc:
runs-on: windows-latest
steps:
- id: checkout
uses: actions/checkout@v2
- name: Add VisualStudio command line tools into path
uses: ilammy/msvc-dev-cmd@v1
- name: Meson Build
uses: BSFishy/[email protected]
with:
action: build
directory: output
setup-options: -Ddocumentation=false
options: --verbose
meson-version: 1.3.0