mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-28 04:10:23 +00:00
4523b10e45
When Ubuntu ships with sched_ext, we can also maybe test loading the schedulers (not sure if the runners can run as root though). For now, we should at least have a CI job that lets us verify that the schedulers can _build_. To that end, this patch adds a basic CI action that builds the schedulers. As is, this is a bit brittle in that we're having to manually download and install a few dependencies. I don't see a better way for now without hosting our own runners with our own containers, but that's a bigger investment. For now, hopefully this will get us _some_ coverage. Signed-off-by: David Vernet <void@manifault.com>
12 lines
473 B
Meson
12 lines
473 B
Meson
c_scheds = ['scx_simple', 'scx_qmap', 'scx_central', 'scx_pair', 'scx_flatcg', 'scx_userland', 'scx_nest']
|
|
|
|
foreach sched: c_scheds
|
|
thread_dep = dependency('threads')
|
|
bpf_o = gen_bpf_o.process(sched + '.bpf.c', extra_args: bpf_includes)
|
|
bpf_skel = gen_bpf_skel.process(bpf_o)
|
|
executable(sched, [bpf_skel, sched + '.c'],
|
|
include_directories: [user_c_includes],
|
|
dependencies: [libbpf_dep, thread_dep],
|
|
install: true)
|
|
endforeach
|