aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-06-03 23:06:09 +0200
committerGitHub <[email protected]>2022-06-03 23:06:09 +0200
commitb52bf436db7cbf7a4e163da94c18e3ee5024f5a7 (patch)
tree3b9909e22066dee473ee870d81b4deaa69ec847b /xmake.lua
parenttweak compression settings to streamline build (diff)
parentremove debug print (diff)
downloadzen-b52bf436db7cbf7a4e163da94c18e3ee5024f5a7.tar.xz
zen-b52bf436db7cbf7a4e163da94c18e3ee5024f5a7.zip
Merge pull request #119 from EpicGames/de/test-git-version-tag
Pull version for GitHub action if available
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index 9ffc94c65..a4750a1d1 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -1,7 +1,9 @@
-- Copyright Epic Games, Inc. All Rights Reserved.
-set_version("0.1.1", { build = "%Y%m%d%H%M" })
set_configvar("ZEN_SCHEMA_VERSION", 3) -- changed cas oplog format (p3rl)
+local zenversion = os.getenv("ZEN_VERSION") or "0.0.0"
+zenversion = string.gsub(zenversion, "^v", "")
+set_version(zenversion, { build = "%Y%m%d%H%M" })
add_requires(
"vcpkg::asio",