-
-
Notifications
You must be signed in to change notification settings - Fork 75
147 lines (133 loc) · 4.46 KB
/
on_PR_meson.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: On PRs - meson
on: pull_request
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true
jobs:
Ubuntu:
runs-on: ubuntu-20.04
name: Linux-GCC${{matrix.cxx}}
strategy:
matrix:
cxx: ['7', '10']
steps:
- uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt install -y gcc-${{matrix.cxx}} g++-${{matrix.cxx}}
python3 -m pip install meson ninja
- name: Compile and Test
env:
CC: gcc-${{matrix.cxx}}
CXX: g++-${{matrix.cxx}}
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Ddev_build=true
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
Ubuntu-clang:
runs-on: ubuntu-20.04
name: Linux-Clang${{matrix.cxx}}
strategy:
matrix:
cxx: ['7', '12']
steps:
- uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt install -y clang-${{matrix.cxx}} libc++abi-${{matrix.cxx}}-dev libc++-${{matrix.cxx}}-dev lld-${{matrix.cxx}}
python3 -m pip install meson ninja
- name: Compile and Test
env:
CC: clang-${{matrix.cxx}}
CXX: clang++-${{matrix.cxx}}
CXXFLAGS: -stdlib=libc++
CC_LD: lld-${{matrix.cxx}}
CXX_LD: lld-${{matrix.cxx}}
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dcpp_std=c++20 -Ddev_build=true
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
VisualStudio:
runs-on: windows-latest
name: MSVC-${{matrix.cxx}}
strategy:
matrix:
cxx: ['cl', 'clang-cl']
steps:
- uses: actions/checkout@v3
- name: Install packages
run: |
python -m pip install meson ninja
- uses: ilammy/msvc-dev-cmd@v1
- name: Compile and Test
env:
CC: ${{matrix.cxx}}
CXX: ${{matrix.cxx}}
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dcpp_std=c++latest -Ddev_build=true
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
MSYS2:
runs-on: windows-latest
name: MSYS2-${{matrix.platform}}
strategy:
matrix:
platform: ['MINGW32', 'MINGW64', 'UCRT64', 'CLANG32', 'CLANG64']
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.platform}}
pacboy: >-
cc:p
libpng:p
meson:p
ninja:p
pkgconf:p
- name: Compile and Test
shell: msys2 {0}
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dcpp_std=c++20 -Ddev_build=true
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
MacOS:
runs-on: macos-latest
name: macOS
steps:
- uses: actions/checkout@v3
- name: Install packages
run: |
python3 -m pip install meson ninja
- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dcpp_std=c++20 -Ddev_build=true
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
FreeBSD:
runs-on: macos-latest
name: FreeBSD
steps:
- uses: actions/checkout@v3
- name: FreeBSD
uses: vmactions/freebsd-vm@v0
with:
prepare: |
pkg install -y ninja meson pkgconf
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dcpp_std=c++20 -Ddev_build=true
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
OpenBSD:
runs-on: macos-latest
name: OpenBSD
steps:
- uses: actions/checkout@v3
- name: OpenBSD
uses: vmactions/openbsd-vm@v0
with:
prepare: |
pkg_add libpng ninja meson pkgconf
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dcpp_std=c++20 -Ddev_build=true
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose