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 uses: microsoft/setup-msbuild@v1.3.1
- name: Generate project files - name: Generate project files
run: tools/premake5 vs2022 --dev-build run: tools/premake5 vs2022 --no-check
- name: Set up problem matching - name: Set up problem matching
uses: ammaraskar/msvc-problem-matcher@master uses: ammaraskar/msvc-problem-matcher@master

View File

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

View File

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