Don't build dev builds anymore

This commit is contained in:
momo5502 2023-02-26 13:02:05 +01:00
parent 614200d429
commit e121260701
3 changed files with 12 additions and 2 deletions

View File

@ -36,7 +36,7 @@ jobs:
uses: microsoft/setup-msbuild@v1.3.1
- name: Generate project files
run: tools/premake5 vs2022 --dev-build
run: tools/premake5 vs2022 --no-check
- name: Set up problem matching
uses: ammaraskar/msvc-problem-matcher@master

View File

@ -77,6 +77,12 @@ newoption {
description = "Enable development builds of the client."
}
newoption {
trigger = "no-check",
description = "Disable ownership checks."
}
newaction {
trigger = "version",
description = "Returns the version string for the current commit of the source code.",
@ -243,6 +249,10 @@ workspace "boiii"
if _OPTIONS["dev-build"] then
defines {"DEV_BUILD"}
end
if _OPTIONS["no-check"] then
defines {"NO_CHECK"}
end
if os.getenv("CI") then
defines {"CI"}

View File

@ -187,7 +187,7 @@ namespace steam_proxy
void evaluate_ownership_state(const ownership_state state)
{
#ifdef DEV_BUILD
#if defined(DEV_BUILD) || defined(NO_CHECK)
(void)state;
#else
switch (state)