Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro
Commits
175c80e0
Commit
175c80e0
authored
Jun 14, 2025
by
Nanahira
Committed by
GitHub
Jun 14, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use premake mac from github release & remove Rosetta thing (#43)
parent
99982e8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
21 deletions
+16
-21
.github/workflows/build.yml
.github/workflows/build.yml
+13
-5
premake5.lua
premake5.lua
+3
-16
No files found.
.github/workflows/build.yml
View file @
175c80e0
...
@@ -528,9 +528,17 @@ jobs:
...
@@ -528,9 +528,17 @@ jobs:
brew install opus opusfile libvorbis
brew install opus opusfile libvorbis
# brew install sqlite libx11 freetype libevent
# brew install sqlite libx11 freetype libevent
-
name
:
Install premake
-
name
:
Download premake
id
:
premake
uses
:
mercury233/action-cache-download-file@v1.0.0
with
:
url
:
https://github.com/premake/premake-core/releases/download/v5.0.0-beta7/premake-5.0.0-beta7-macosx.tar.gz
filename
:
premake5.tar.gz
-
name
:
Extract premake
run
:
|
run
:
|
brew install premake
tar xf ${{ steps.premake.outputs.filepath }}
chmod +x ./premake5
-
name
:
Download libevent
-
name
:
Download libevent
if
:
matrix.static-link ==
true
if
:
matrix.static-link ==
true
...
@@ -662,12 +670,12 @@ jobs:
...
@@ -662,12 +670,12 @@ jobs:
-
name
:
Use premake to generate make files (Homebrew packages)
-
name
:
Use premake to generate make files (Homebrew packages)
if
:
matrix.static-link !=
true
if
:
matrix.static-link !=
true
run
:
|
run
:
|
DYLD_LIBRARY_PATH=$(brew --prefix)/lib premake5 gmake
DYLD_LIBRARY_PATH=$(brew --prefix)/lib
./
premake5 gmake
-
name
:
Use premake to generate make files (static link)
-
name
:
Use premake to generate make files (static link)
if
:
matrix.static-link ==
true
if
:
matrix.static-link ==
true
run
:
|
run
:
|
premake5 gmake ${{ matrix.cross-build-intel == true && '--mac-intel' || '' }} ${{ matrix.cross-build-arm == true && '--mac-arm' || '' }} \
./
premake5 gmake ${{ matrix.cross-build-intel == true && '--mac-intel' || '' }} ${{ matrix.cross-build-arm == true && '--mac-arm' || '' }} \
--build-event \
--build-event \
--build-freetype \
--build-freetype \
--build-sqlite \
--build-sqlite \
...
@@ -684,4 +692,4 @@ jobs:
...
@@ -684,4 +692,4 @@ jobs:
with
:
with
:
name
:
YGOPro-${{ matrix.name }}
name
:
YGOPro-${{ matrix.name }}
path
:
|
path
:
|
bin/release/YGOPro
.app
bin/release/YGOPro
premake5.lua
View file @
175c80e0
...
@@ -244,18 +244,9 @@ if os.istarget("macosx") then
...
@@ -244,18 +244,9 @@ if os.istarget("macosx") then
if
GetParam
(
"mac-intel"
)
then
if
GetParam
(
"mac-intel"
)
then
MAC_INTEL
=
true
MAC_INTEL
=
true
end
end
if
MAC_ARM
or
(
not
MAC_INTEL
and
os
.
hostarch
()
==
"ARM64"
)
then
if
MAC_ARM
then
-- building on ARM CPU will target ARM automatically
TARGET_MAC_ARM
=
true
TARGET_MAC_ARM
=
true
elseif
not
MAC_INTEL
then
-- automatic target arm64, need extra detect
-- currently, os.hostarch cannot detect architectures that have been automatically translated by macOS
local
uname
=
os
.
outputof
(
"uname -m"
)
local
proctranslated
=
os
.
outputof
(
"sysctl sysctl.proc_translated"
)
if
uname
:
find
(
"arm"
)
or
proctranslated
then
print
(
"Detected Apple Silicon Mac"
)
TARGET_MAC_ARM
=
true
end
end
end
end
end
...
@@ -320,11 +311,7 @@ workspace "YGOPro"
...
@@ -320,11 +311,7 @@ workspace "YGOPro"
targetdir
"bin/debug/x64"
targetdir
"bin/debug/x64"
filter
{
"configurations:Release"
,
"action:vs*"
}
filter
{
"configurations:Release"
,
"action:vs*"
}
if
linktimeoptimization
then
-- available since premake 5.0-beta4
linktimeoptimization
"On"
linktimeoptimization
"On"
else
flags
{
"LinkTimeOptimization"
}
end
staticruntime
"On"
staticruntime
"On"
disablewarnings
{
"4244"
,
"4267"
,
"4838"
,
"4996"
,
"6011"
,
"6031"
,
"6054"
,
"6262"
}
disablewarnings
{
"4244"
,
"4267"
,
"4838"
,
"4996"
,
"6011"
,
"6031"
,
"6054"
,
"6262"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment