Commit cf9427bb authored by mercury233's avatar mercury233

use premake 5.0.0-beta7

parent bdd3995e
...@@ -65,7 +65,7 @@ jobs: ...@@ -65,7 +65,7 @@ jobs:
id: premake id: premake
uses: mercury233/action-cache-download-file@v1.0.0 uses: mercury233/action-cache-download-file@v1.0.0
with: with:
url: https://github.com/premake/premake-core/releases/download/v5.0.0-beta6/premake-5.0.0-beta6-windows.zip url: https://github.com/premake/premake-core/releases/download/v5.0.0-beta7/premake-5.0.0-beta7-windows.zip
filename: premake5.zip filename: premake5.zip
- name: Extract premake - name: Extract premake
...@@ -258,7 +258,7 @@ jobs: ...@@ -258,7 +258,7 @@ jobs:
premake-version: 5.0.0-beta4 premake-version: 5.0.0-beta4
- name: ubuntu-24 - name: ubuntu-24
os: ubuntu-24.04 os: ubuntu-24.04
premake-version: 5.0.0-beta6 premake-version: 5.0.0-beta7
- name: ubuntu-static-link - name: ubuntu-static-link
os: ubuntu-22.04 os: ubuntu-22.04
premake-version: 5.0.0-beta4 premake-version: 5.0.0-beta4
......
...@@ -249,6 +249,7 @@ if os.istarget("macosx") then ...@@ -249,6 +249,7 @@ if os.istarget("macosx") then
TARGET_MAC_ARM = true TARGET_MAC_ARM = true
elseif not MAC_INTEL then elseif not MAC_INTEL then
-- automatic target arm64, need extra detect -- automatic target arm64, need extra detect
-- os.hostarch can't be relied on in premake 5.0-beta6 and older
local uname = os.outputof("uname -m") local uname = os.outputof("uname -m")
local proctranslated = os.outputof("sysctl sysctl.proc_translated") local proctranslated = os.outputof("sysctl sysctl.proc_translated")
if uname:find("arm") or proctranslated then if uname:find("arm") or proctranslated then
...@@ -319,7 +320,7 @@ workspace "YGOPro" ...@@ -319,7 +320,7 @@ workspace "YGOPro"
targetdir "bin/debug/x64" targetdir "bin/debug/x64"
filter { "configurations:Release", "action:vs*" } filter { "configurations:Release", "action:vs*" }
if linktimeoptimization then if linktimeoptimization then -- available since premake 5.0-beta4
linktimeoptimization "On" linktimeoptimization "On"
else else
flags { "LinkTimeOptimization" } flags { "LinkTimeOptimization" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment