-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (67 loc) · 2.02 KB
/
ci.yml
File metadata and controls
68 lines (67 loc) · 2.02 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
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
paths-ignore:
- readme.md
jobs:
meson-build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Linux GCC 10 Rel (C++20)", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
compiler: gcc-10,
build_type: RelWithDebInfo,
cc: "gcc-10", cxx: "g++-10",
}
- {
name: "Linux GCC 12 Rel (C++20)", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
compiler: gcc-12,
build_type: RelWithDebInfo,
cc: "gcc-12", cxx: "g++-12",
}
- {
name: "Linux Clang 14 Rel(C++20)", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
compiler: clang-14,
build_type: RelWithDebInfo,
cc: "clang-14", cxx: "clang++-14",
}
- {
name: "macOS Clang 14 Rel (C++20)", artifact: "macOS.tar.xz",
os: macos-14,
compiler: clang,
build_type: RelWithDebInfo,
cc: "clang", cxx: "clang++",
}
- {
name: "Windows MSVC 2022 Rel (C++20)", artifact: "Windows-MSVC.tar.xz",
os: windows-latest,
compiler: msvc,
build_type: RelWithDebInfo,
cc: "cl", cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
cmake_args: "-D CMAKE_CXX_STANDARD:STRING=20"
}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: blob:none
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install meson ninja
- uses: ilammy/msvc-dev-cmd@v1
- run: meson setup ${{ matrix.config.compiler }}/
env:
CXX: ${{ matrix.config.cxx }}
- run: meson test -C ${{ matrix.config.compiler }}/ -v