ci: add the native VBS workflow #64
No files matched your search
@@ -33,6 +33,16 @@ void build(Void::Build::Project &project) {
|
||||
.link_option("-ldl", Void::Build::Visibility::Public);
|
||||
}
|
||||
|
||||
// Install/packaging rules: module archives, public headers and license metadata.
|
||||
for (auto &[name, target] : libs.modules) {
|
||||
if (target.record().kind == Void::Build::TargetKind::HeaderOnly) {
|
||||
continue;
|
||||
}
|
||||
target.install("lib");
|
||||
}
|
||||
project.install_directory("include", "include");
|
||||
project.install_file("README.md", "share/doc/VoidLibrary");
|
||||
|
||||
// Smoke test exercising the native VoidLibrary closure through VBS.
|
||||
auto smoke = project.test("void_smoke");
|
||||
smoke.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#include <Void/Build.hpp>
|
||||
|
||||
// VoidLibrary native profiles: debug (default) and release, plus an optimized
|
||||
// "relwithdebinfo" variant useful for sanitizer and benchmark runs.
|
||||
void profiles(Void::Build::Profiles &descriptions) {
|
||||
descriptions = Void::Build::default_profiles();
|
||||
descriptions.add("relwithdebinfo", {"-O2", "-g"});
|
||||
}
|
||||
Reference in new issue
Block a user