-
Notifications
You must be signed in to change notification settings - Fork 7
191 lines (181 loc) · 10.9 KB
/
ci.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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
name: 'Build and test'
on: [push, pull_request, workflow_dispatch]
jobs:
debian-12:
runs-on: ubuntu-latest
container:
image: debian:bookworm
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: apt-get update
- run: env DEBIAN_FRONTEND=noninteractive apt-get install -y git
- uses: actions/checkout@v4
- name: Install dependencies
run: env DEBIAN_FRONTEND=noninteractive apt install -y g++ mariadb-server libmariadb-dev libseccomp-dev libzip-dev libcap-dev rustc fpc pkgconf meson libgtest-dev libgmock-dev
- run: chown tester:tester -R .
- run: su tester -c 'meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim'
- run: su tester -c 'meson compile -C release-build/'
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'
ubuntu-24:
runs-on: ubuntu-latest
container:
image: ubuntu:24.04
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: apt-get update
- run: env DEBIAN_FRONTEND=noninteractive apt-get install -y git
- uses: actions/checkout@v4
- name: Install dependencies
run: env DEBIAN_FRONTEND=noninteractive apt install -y g++ mariadb-server libmariadb-dev libseccomp-dev libzip-dev libcap-dev rustc fpc pkgconf meson libgtest-dev libgmock-dev
- run: chown tester:tester -R .
- run: su tester -c 'meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim'
- run: su tester -c 'meson compile -C release-build/'
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'
fedora-39:
runs-on: ubuntu-latest
container:
image: fedora:39
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: dnf install --quiet --assumeyes git
- uses: actions/checkout@v4
- name: Install dependencies
run: dnf install --assumeyes g++ mariadb-server mariadb-connector-c-devel libseccomp-devel libzip-devel libcap-devel rustc fpc pkgconf meson gtest-devel gmock-devel
- run: chown tester:tester -R .
- run: su tester -c 'meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim'
- run: su tester -c 'meson compile -C release-build/'
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'
archlinux:
runs-on: ubuntu-latest
container:
image: archlinux
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: pacman -Sy --noconfirm git
- uses: actions/checkout@v4
- name: Install dependencies
run: pacman -S --noconfirm gcc mariadb mariadb-libs libseccomp libzip libcap rust fpc pkgconf meson gtest diffutils
- run: chown tester:tester -R .
- run: su tester -c 'meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim'
- run: su tester -c 'meson compile -C release-build/'
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'
on-tmp:
runs-on: ubuntu-latest
container:
image: debian:bookworm
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: apt-get update
- run: env DEBIAN_FRONTEND=noninteractive apt-get install -y git
- uses: actions/checkout@v4
- name: Install dependencies
run: env DEBIAN_FRONTEND=noninteractive apt install -y g++ mariadb-server libmariadb-dev libseccomp-dev libzip-dev libcap-dev rustc fpc pkgconf meson libgtest-dev libgmock-dev
- run: cp -r . /tmp/sim-project
- run: chown tester:tester -R /tmp/sim-project
- run: su tester -c 'cd /tmp/sim-project && meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim'
- run: su tester -c 'cd /tmp/sim-project && meson compile -C release-build/'
- run: su tester -c 'cd /tmp/sim-project && meson test -C release-build/ --print-errorlogs'
debian-12-with-sanitizers:
runs-on: ubuntu-latest
container:
image: debian:bookworm
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: apt-get update
- run: env DEBIAN_FRONTEND=noninteractive apt-get install -y git
- uses: actions/checkout@v4
- name: Install dependencies
run: env DEBIAN_FRONTEND=noninteractive apt install -y g++ mariadb-server libmariadb-dev libseccomp-dev libzip-dev libcap-dev rustc fpc pkgconf meson libgtest-dev libgmock-dev
- run: chown tester:tester -R .
- run: su tester -c 'meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim -Dcpp_args='-D_GLIBCXX_ASSERTIONS' -Db_sanitize=address,undefined -Db_lundef=false'
- run: su tester -c 'meson compile -C release-build/'
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'
ubuntu-24-with-sanitizers:
runs-on: ubuntu-latest
container:
image: ubuntu:24.04
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: apt-get update
- run: env DEBIAN_FRONTEND=noninteractive apt-get install -y git
- uses: actions/checkout@v4
- name: Install dependencies
run: env DEBIAN_FRONTEND=noninteractive apt install -y g++ mariadb-server libmariadb-dev libseccomp-dev libzip-dev libcap-dev rustc fpc pkgconf meson libgtest-dev libgmock-dev
- run: chown tester:tester -R .
- run: su tester -c 'meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim -Dcpp_args='-D_GLIBCXX_ASSERTIONS' -Db_sanitize=address,undefined -Db_lundef=false'
- run: su tester -c 'meson compile -C release-build/'
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'
fedora-39-with-sanitizers:
runs-on: ubuntu-latest
container:
image: fedora:39
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: dnf install --quiet --assumeyes git
- uses: actions/checkout@v4
- name: Install dependencies
run: dnf install --assumeyes g++ mariadb-server mariadb-connector-c-devel libseccomp-devel libzip-devel libcap-devel rustc fpc pkgconf meson gtest-devel gmock-devel libasan libubsan
- run: chown tester:tester -R .
- run: su tester -c 'meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim -Dcpp_args='-D_GLIBCXX_ASSERTIONS' -Db_sanitize=address,undefined -Db_lundef=false'
- run: su tester -c 'meson compile -C release-build/'
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'
archlinux-with-satinizers:
runs-on: ubuntu-latest
container:
image: archlinux
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: pacman -Sy --noconfirm git
- uses: actions/checkout@v4
- name: Install dependencies
run: pacman -S --noconfirm gcc mariadb mariadb-libs libseccomp libzip libcap rust fpc pkgconf meson gtest diffutils
- run: chown tester:tester -R .
- run: su tester -c 'meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim -Dcpp_args='-D_GLIBCXX_ASSERTIONS' -Db_sanitize=address,undefined -Db_lundef=false'
- run: su tester -c 'meson compile -C release-build/'
- run: su tester -c 'meson test -C release-build/ --print-errorlogs'
on-tmp-with-sanitizers:
runs-on: ubuntu-latest
container:
image: debian:bookworm
options: --security-opt seccomp=unconfined --privileged --security-opt systempaths=unconfined # needed to make clone3() work in the container, and mount cgroup2 read-write, and /proc mountable
steps:
- run: mount -t cgroup2 -o nsdelegate,remount none /sys/fs/cgroup
- run: useradd tester
- run: chown -R tester:tester /sys/fs/cgroup
- run: apt-get update
- run: env DEBIAN_FRONTEND=noninteractive apt-get install -y git
- uses: actions/checkout@v4
- name: Install dependencies
run: env DEBIAN_FRONTEND=noninteractive apt install -y g++ mariadb-server libmariadb-dev libseccomp-dev libzip-dev libcap-dev rustc fpc pkgconf meson libgtest-dev libgmock-dev
- run: cp -r . /tmp/sim-project
- run: chown tester:tester -R /tmp/sim-project
- run: su tester -c 'cd /tmp/sim-project && meson setup release-build/ -Dbuildtype=release -Dbuild=all -Dinstall=sim -Dcpp_args='-D_GLIBCXX_ASSERTIONS' -Db_sanitize=address,undefined -Db_lundef=false'
- run: su tester -c 'cd /tmp/sim-project && meson compile -C release-build/'
- run: su tester -c 'cd /tmp/sim-project && meson test -C release-build/ --print-errorlogs'