From 335b48056f8c3416c1357dbcabf8970229f71717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Mon, 26 Jul 2021 12:53:46 +0200 Subject: [PATCH] XMake: Setup allowed modes/plats/archs --- .github/workflows/linux-build.yml | 2 +- xmake.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index e4a7507fd..9080d6f1d 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - arch: [x64] + arch: [x86_64] mode: [debug, releasedbg] runs-on: ${{ matrix.os }} diff --git a/xmake.lua b/xmake.lua index 77d364fc6..27d195313 100644 --- a/xmake.lua +++ b/xmake.lua @@ -98,6 +98,8 @@ local modules = { } } +set_xmakever("2.5.6") + add_repositories("local-repo xmake-repo") add_requires("chipmunk2d", "dr_wav", "entt", "freetype", "libflac", "libsdl", "minimp3", "stb") @@ -111,6 +113,11 @@ add_rules("mode.asan", "mode.debug", "mode.releasedbg") add_rules("plugin.vsxmake.autoupdate") add_rules("build_rendererplugins") +set_allowedmodes("asan", "debug", "releasedbg") +set_allowedplats("windows", "linux", "macosx") +set_allowedarchs("windows|x64", "linux|x86_64", "macosx|x86_64") +set_defaultmode("debug") + if is_mode("debug") then add_rules("debug_suffix") elseif is_mode("asan") then