Don't build dev builds anymore
This commit is contained in:
parent
614200d429
commit
e121260701
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -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
|
||||||
|
10
premake5.lua
10
premake5.lua
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user