-
Notifications
You must be signed in to change notification settings - Fork 0
139 lines (132 loc) · 6.15 KB
/
Copy pathci.yml
File metadata and controls
139 lines (132 loc) · 6.15 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
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
name: continuous integration tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
preset-test:
uses: devmarkusb/devenv/.github/workflows/preset-test.yml@main
with:
matrix_config: >
[
{"preset": "gcc-debug", "image": "ghcr.io/bemanproject/infra-containers-gcc:latest"},
{"preset": "gcc-release", "image": "ghcr.io/bemanproject/infra-containers-gcc:latest"},
{"preset": "clang-debug", "image": "ghcr.io/bemanproject/infra-containers-clang:latest"},
{"preset": "clang-release", "image": "ghcr.io/bemanproject/infra-containers-clang:latest"},
{"preset": "clang-libc++-debug", "image": "ghcr.io/bemanproject/infra-containers-clang:latest"},
{"preset": "clang-libc++-release", "image": "ghcr.io/bemanproject/infra-containers-clang:latest"},
{"preset": "appleclang-debug", "runner": "macos-latest"},
{"preset": "appleclang-release", "runner": "macos-latest"},
{"preset": "appleclang-maxsan-release", "runner": "macos-latest"},
{"preset": "msvc-debug", "runner": "windows-latest"},
{"preset": "msvc-release", "runner": "windows-latest"}
]
preset-test-nix-conan:
uses: devmarkusb/devenv/.github/workflows/preset-test.yml@main
with:
use_nix_conan: true
default_setup_script: .github/scripts/setup-ci-conan.sh
matrix_config: >
[
{"preset": "nix-conan-gcc-debug", "runner": "ubuntu-latest", "nix_packages": "cmake ninja pkg-config gcc15", "conan_profile": "conan/profiles/linux-gcc-debug"},
{"preset": "nix-conan-gcc-release", "runner": "ubuntu-latest", "nix_packages": "cmake ninja pkg-config gcc15", "conan_profile": "conan/profiles/linux-gcc-release"},
{"preset": "nix-conan-clang-debug", "runner": "ubuntu-latest", "nix_packages": "cmake ninja pkg-config clang_21 llvmPackages_21.compiler-rt-libc", "conan_profile": "conan/profiles/linux-clang-debug"},
{"preset": "nix-conan-clang-release", "runner": "ubuntu-latest", "nix_packages": "cmake ninja pkg-config clang_21 llvmPackages_21.compiler-rt-libc", "conan_profile": "conan/profiles/linux-clang-release"},
{"preset": "nix-conan-clang-libc++-debug", "runner": "ubuntu-latest", "nix_packages": "cmake ninja pkg-config llvmPackages_21.libcxxClang llvmPackages_21.libcxx llvmPackages_21.compiler-rt-libc", "conan_profile": "conan/profiles/linux-clang-libcxx-debug", "setup_script": ".github/scripts/setup-nix-clang-libcxx-env.sh"},
{"preset": "nix-conan-clang-libc++-release", "runner": "ubuntu-latest", "nix_packages": "cmake ninja pkg-config llvmPackages_21.libcxxClang llvmPackages_21.libcxx llvmPackages_21.compiler-rt-libc", "conan_profile": "conan/profiles/linux-clang-libcxx-release", "setup_script": ".github/scripts/setup-nix-clang-libcxx-env.sh"},
{"preset": "nix-conan-appleclang-debug", "runner": "macos-latest", "nix_packages": "cmake ninja pkg-config", "conan_profile": "conan/profiles/macos-appleclang-debug"},
{"preset": "nix-conan-appleclang-release", "runner": "macos-latest", "nix_packages": "cmake ninja pkg-config", "conan_profile": "conan/profiles/macos-appleclang-release"},
{"preset": "nix-conan-appleclang-maxsan-release", "runner": "macos-latest", "nix_packages": "cmake ninja pkg-config", "conan_profile": "conan/profiles/macos-appleclang-release"}
]
conanfile: conanfile.txt
conan_output_folder: build/conan
build-and-test:
uses: devmarkusb/devenv/.github/workflows/build-and-test.yml@main
with:
matrix_config: >
{
"gcc": [
{ "versions": ["15"],
"tests": [
{ "cxxversions": ["c++26"],
"tests": [
{ "stdlibs": ["libstdc++"],
"tests": [
"Release.Default", "Release.TSan",
"Release.MaxSan", "Release.MaxWarn",
"Debug.MaxWarn",
"Debug.Coverage"
]
}
]
}
]
}
],
"clang": [
{ "versions": ["21"],
"tests": [
{"cxxversions": ["c++26"],
"tests": [
{ "stdlibs": ["libstdc++", "libc++"],
"tests": [
"Release.Default", "Release.TSan",
"Release.MaxSan"
]
}
]
}
]
},
{ "versions": ["18"],
"tests": [
{ "cxxversions": ["c++26", "c++23"],
"tests": [{"stdlibs": ["libc++"], "tests": ["Release.Default"]}]
}
]
}
],
"appleclang": [
{ "versions": ["latest"],
"tests": [
{ "cxxversions": ["c++26"],
"tests": [{ "stdlibs": ["libc++"], "tests": ["Release.MaxSan", "Debug.MaxWarn"]}]
}
]
}
],
"msvc": [
{ "versions": ["latest"],
"tests": [
{ "cxxversions": ["c++23"],
"tests": [
{ "stdlibs": ["stl"],
"tests": ["Release.MaxSan", "Debug.MaxWarnMsvc"]
}
]
}
]
}
]
}
install-test:
uses: devmarkusb/devenv/.github/workflows/install-test.yml@main
with:
image: ghcr.io/bemanproject/infra-containers-gcc:latest
cxx_standard: 26
namespace: mb
main_header: cpp-lib-template.hpp
dependabot-automerge:
needs: [preset-test, preset-test-nix-conan, build-and-test, install-test]
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'dependabot[bot]' &&
!github.event.pull_request.draft
permissions:
contents: write
pull-requests: write
uses: devmarkusb/devenv/.github/workflows/dependabot-automerge.yml@807befc3c0fac1a78bcdba017fc579459921f548