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
YGOPRO-520DIY
ygopro
Commits
2de9fa7b
Commit
2de9fa7b
authored
Mar 26, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mac on ci
parent
78685934
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
13 deletions
+112
-13
.gitlab-ci.yml
.gitlab-ci.yml
+109
-13
gframe/premake5.lua
gframe/premake5.lua
+1
-0
premake5.lua
premake5.lua
+2
-0
No files found.
.gitlab-ci.yml
View file @
2de9fa7b
...
...
@@ -56,6 +56,20 @@ mat_linux:
paths
:
-
irrlicht
mat_macos
:
stage
:
prepare
tags
:
-
linux
script
:
-
apt update; apt -y install wget tar git
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-beta5-macosx.tar.gz | tar zfx -
-
chmod +x premake5
-
git clone --depth=1 https://code.mycard.moe/mycard/irrlicht-new irrlicht
artifacts
:
paths
:
-
premake5
-
irrlicht
mat_windows
:
stage
:
prepare
tags
:
...
...
@@ -69,7 +83,7 @@ mat_windows:
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx -
-
mv libevent-2.0.22-stable event
# irrlicht
-
git clone --depth=1
-b develop
https://code.mycard.moe/mycard/irrlicht-new irrlicht
-
git clone --depth=1 https://code.mycard.moe/mycard/irrlicht-new irrlicht
artifacts
:
paths
:
-
premake5.exe
...
...
@@ -118,30 +132,37 @@ exec_windows_pro3:
-
mkdir dist\windows
-
copy bin\release\ygoserver.dll dist\windows\ygoserver.dll
.exec_
linu
x_common
:
.exec_
uni
x_common
:
extends
:
._exec_build
tags
:
-
linux
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder
dependencies
:
-
mat_common
-
mat_linux
-
mat_submodules
variables
:
RELEASE_DIR
:
'
'
TARGET_FILE
:
ygopro
PREMAKE5_BIN
:
premake5
script
:
-
premake5
gmake
-
$PREMAKE5_BIN
gmake
-
cd build
-
make config=release -j$(nproc)
-
cd ..
-
mkdir -p dist/$RELEASE_DIR
-
mv bin/release/$TARGET_FILE dist/$RELEASE_DIR/$TARGET_FILE
-
strip dist/$RELEASE_DIR/$TARGET_FILE
-
|
if [ "$TARGET_FILE" = "ygopro" ]; then
strip dist/$RELEASE_DIR/$TARGET_FILE
fi
artifacts
:
paths
:
-
dist
.exec_linux_common
:
extends
:
.exec_unix_common
tags
:
-
linux
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder
dependencies
:
-
mat_common
-
mat_linux
-
mat_submodules
.exec_linux
:
extends
:
.exec_linux_common
variables
:
...
...
@@ -169,6 +190,11 @@ exec_windows_pro3:
SERVER_PRO3_SUPPORT
:
'
1'
TARGET_FILE
:
libygoserver.so
.use_pro3_macos
:
variables
:
SERVER_PRO3_SUPPORT
:
'
1'
TARGET_FILE
:
libygoserver.dylib
LIBEVENT_PREBUILD_FLAGS
:
'
-fPIC'
exec_linux
:
extends
:
.exec_linux
...
...
@@ -186,7 +212,7 @@ exec_linuxarm:
-
.exec_linux
-
.use_arm
variables
:
RELEASE_DIR
:
linux-arm
RELEASE_DIR
:
linux-arm
64
exec_linuxarm_pro3
:
extends
:
...
...
@@ -194,7 +220,7 @@ exec_linuxarm_pro3:
-
.use_arm
-
.use_pro3
variables
:
RELEASE_DIR
:
linux-arm
RELEASE_DIR
:
linux-arm
64
exec_debianarm
:
extends
:
...
...
@@ -203,6 +229,72 @@ exec_debianarm:
variables
:
RELEASE_DIR
:
debian-arm
.exec_macos_platform
:
extends
:
.exec_unix_common
dependencies
:
-
mat_common
-
mat_macos
-
mat_submodules
before_script
:
-
env CFLAGS=$LIBEVENT_PREBUILD_FLAGS CXXFLAGS=$LIBEVENT_PREBUILD_FLAGS ./.ci/libevent-prebuild.sh
variables
:
PREMAKE5_BIN
:
./premake5
BUILD_SQLITE
:
'
1'
SERVER_ZIP_SUPPORT
:
'
1'
EVENT_INCLUDE_DIR
:
../libevent-stable/include
EVENT_LIB_DIR
:
../libevent-stable/lib
exec_macos_x64
:
extends
:
.exec_macos_platform
tags
:
-
macos
variables
:
RELEASE_DIR
:
macos-x64
exec_macos_arm64
:
extends
:
.exec_macos_platform
tags
:
-
macos-m1
variables
:
RELEASE_DIR
:
macos-arm64
exec_macos_x64_pro3
:
extends
:
-
.exec_macos_platform
-
.use_pro3_macos
tags
:
-
macos
variables
:
RELEASE_DIR
:
macos-x64
exec_macos_arm64_pro3
:
extends
:
-
.exec_macos_platform
-
.use_pro3_macos
tags
:
-
macos-m1
variables
:
RELEASE_DIR
:
macos-arm64
exec_macos
:
stage
:
combine
tags
:
-
macos
dependencies
:
-
exec_macos_x64
-
exec_macos_arm64
-
exec_macos_x64_pro3
-
exec_macos_arm64_pro3
script
:
-
mkdir -p dist/macos
-
lipo -create -output dist/macos/ygopro dist/macos-x64/ygopro dist/macos-arm64/ygopro
-
lipo -create -output dist/macos/libygoserver.dylib dist/macos-x64/libygoserver.dylib dist/macos-arm64/libygoserver.dylib
-
rm -rf dist/macos-x64 dist/macos-arm64
artifacts
:
paths
:
-
dist
#win_server_pack:
# stage: pack
# dependencies:
...
...
@@ -219,8 +311,12 @@ upload_to_minio:
-
exec_windows
-
exec_linux
-
exec_linuxarm
-
exec_windows_pro3
-
exec_linux_pro3
-
exec_linuxarm_pro3
-
exec_debian
-
exec_debianarm
-
exec_macos
tags
:
-
linux
script
:
...
...
gframe/premake5.lua
View file @
2de9fa7b
...
...
@@ -15,6 +15,7 @@ if not SERVER_PRO3_SUPPORT then
project
"ygopro"
kind
"ConsoleApp"
end
cppdialect
"C++14"
defines
{
"YGOPRO_SERVER_MODE"
}
...
...
premake5.lua
View file @
2de9fa7b
...
...
@@ -193,6 +193,8 @@ if SERVER_MODE then
IRRKLANG_PRO
=
false
if
not
SERVER_ZIP_SUPPORT
then
BUILD_IRRLICHT
=
false
else
BUILD_IRRLICHT
=
true
end
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