Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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-core
Commits
33a83454
Commit
33a83454
authored
Mar 24, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add multi platform build
parent
eec77745
Pipeline
#34095
failed
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
8 deletions
+107
-8
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+99
-8
premake/dll.lua
premake/dll.lua
+7
-0
No files found.
.gitignore
View file @
33a83454
...
...
@@ -4,6 +4,7 @@
/temp/
/premake-5/
/premake5.exe
/premake5
/dll.lua
/*.sh
...
...
.gitlab-ci.yml
View file @
33a83454
stages
:
-
prepare
-
build
-
combine
-
deploy
variables
:
...
...
@@ -18,7 +19,32 @@ lua:
paths
:
-
lua
.build
:
mat_windows
:
stage
:
prepare
tags
:
-
linux
script
:
-
apt update; apt -y install wget tar patch p7zip-full
# premake5.exe
-
wget https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-beta5-windows.zip
-
7z x -y premake-5.0.0-beta5-windows.zip
artifacts
:
paths
:
-
premake5.exe
mat_macos
:
stage
:
prepare
tags
:
-
linux
script
:
-
apt update; apt -y install wget tar
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-beta5-macosx.tar.gz | tar zfx -
-
chmod +x premake5
artifacts
:
paths
:
-
premake5
.build_unix
:
stage
:
build
tags
:
-
linux
...
...
@@ -39,11 +65,11 @@ lua:
paths
:
-
dist
build_x64
:
extends
:
.build
build_
linux_
x64
:
extends
:
.build
_unix
build_x32
:
extends
:
.build
build_
linux_
x32
:
extends
:
.build
_unix
variables
:
BUILD_TYPE
:
x32
DIST_PATH
:
build/bin/x32/Release
...
...
@@ -51,7 +77,7 @@ build_x32:
-
apt update; apt -y install gcc-multilib g++-multilib
build_wasm
:
extends
:
.build
extends
:
.build
_unix
variables
:
PREMAKE_OS
:
emscripten
BUILD_TYPE
:
wasm
...
...
@@ -61,11 +87,76 @@ build_wasm:
-
mkdir -p wasm
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder:emscripten
.build_windows
:
stage
:
build
dependencies
:
-
mat_windows
tags
:
-
vs
before_script
:
-
copy premake\dll.lua dll.lua
-
'
.\premake5.exe
vs2019
--file=dll.lua'
-
mkdir dist
script
:
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" build\ocgcoredll.sln /t:Build /p:"Configuration=Release;Platform=Win32"'
-
mkdir dist\x32
-
copy build\bin\x32\Release\ocgcore.dll dist\x32\ocgcore.dll
artifacts
:
paths
:
-
dist
build_windows_x32
:
extends
:
.build_windows
tags
:
-
windows
build_windows_x64
:
extends
:
.build_windows
script
:
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" build\ocgcoredll.sln /t:Build /p:"Configuration=Release;Platform=x64"'
-
mkdir dist\x64
-
copy build\bin\x64\Release\ocgcore.dll dist\x64\ocgcore.dll
build_macos_x64
:
extends
:
.build_unix
tags
:
-
macos
variables
:
PREMAKE_OS
:
macosx
BUILD_TYPE
:
x64
build_macos_m1
:
extends
:
build_unix
tags
:
-
macos-m1
variables
:
PREMAKE_OS
:
macosx
BUILD_TYPE
:
arm64
MAC_ARM
:
'
1'
build_macos
:
stage
:
combine
dependencies
:
-
build_macos_x64
-
build_macos_m1
tags
:
-
macos
script
:
-
mkdir -p dist/macos
-
lipo create -output dist/macos/libocgcore.dylib dist/x64/libocgcore.dylib dist/arm64/libocgcore.dylib
-
rm -rf dist/x64 dist/arm64
artifacts
:
paths
:
-
dist
upload_to_minio
:
stage
:
deploy
dependencies
:
-
build_x32
-
build_x64
-
build_linux_x32
-
build_linux_x64
-
build_windows_x32
-
build_windows_x64
-
build_macos
-
build_wasm
tags
:
-
linux
...
...
premake/dll.lua
View file @
33a83454
newoption
{
trigger
=
"lua-dir"
,
description
=
""
,
value
=
"PATH"
,
default
=
"./lua"
}
newoption
{
trigger
=
"wasm"
,
description
=
""
}
newoption
{
trigger
=
"mac-arm"
,
description
=
""
}
function
GetParam
(
param
)
return
_OPTIONS
[
param
]
or
os.getenv
(
string.upper
(
string.gsub
(
param
,
"-"
,
"_"
)))
...
...
@@ -20,6 +21,12 @@ workspace "ocgcoredll"
if
WASM
then
toolset
"emcc"
platforms
{
"wasm"
}
elseif
os
.
istarget
(
"macosx"
)
then
if
GetParam
(
"mac-arm"
)
then
platforms
{
"arm64"
}
else
platforms
{
"x64"
}
end
else
platforms
{
"x32"
,
"x64"
}
end
...
...
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