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
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
MyCard
ygopro
Commits
70e28007
Commit
70e28007
authored
Mar 26, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pro3 ci
parent
a3c3066e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
127 additions
and
12 deletions
+127
-12
.gitlab-ci.yml
.gitlab-ci.yml
+59
-11
gframe/gframe.h
gframe/gframe.h
+10
-0
gframe/serverapi.cpp
gframe/serverapi.cpp
+34
-0
gframe/serverapi.h
gframe/serverapi.h
+23
-0
ocgcore
ocgcore
+1
-1
No files found.
.gitlab-ci.yml
View file @
70e28007
...
...
@@ -74,7 +74,7 @@ mat_windows:
paths
:
-
premake5.exe
-
event
#
- irrlicht
-
irrlicht
._exec_build
:
stage
:
build
...
...
@@ -86,7 +86,7 @@ mat_windows:
-
bin/
-
obj/
exec_windows
:
.
exec_windows
:
extends
:
._exec_build
tags
:
-
vs
...
...
@@ -94,14 +94,27 @@ exec_windows:
-
mat_common
-
mat_windows
-
mat_submodules
script
:
befpre_
script
:
-
bash -c 'cp -rf premake/* . ; cp -rf resource/* .'
-
'
.\premake5.exe
vs2019
--server-zip-support'
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" build\YGOPro.sln /m /p:Configuration=Release'
-
copy bin\release\ygopro.exe .
artifacts
:
paths
:
-
ygopro.exe
-
dist
exec_windows
:
script
:
-
'
.\premake5.exe
vs2019
--server-zip-support'
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" build\YGOPro.sln /m /p:Configuration=Release'
-
mkdir dist
-
mkdir dist\windows
-
copy bin\release\ygopro.exe dist\windows\ygopro.exe
exec_windows_pro3
:
script
:
-
'
.\premake5.exe
vs2019
--server-pro3-support'
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" build\YGOPro.sln /m /p:Configuration=Release'
-
mkdir dist
-
mkdir dist\windows
-
copy bin\release\ygoserver.dll dist\windows\ygoserver.dll
.exec_linux_common
:
extends
:
._exec_build
...
...
@@ -112,16 +125,20 @@ exec_windows:
-
mat_common
-
mat_linux
-
mat_submodules
variables
:
RELEASE_DIR
:
'
'
TARGET_FILE
:
ygopro
script
:
-
premake5 gmake
-
cd build
-
make config=release -j$(nproc)
-
cd ..
-
mv bin/release/ygopro ./ygopro
-
strip ygopro
-
mkdir -p dist/$RELEASE_DIR
-
mv bin/release/$TARGET_FILE dist/$RELEASE_DIR/$TARGET_FILE
-
strip dist/$RELEASE_DIR/$TARGET_FILE
artifacts
:
paths
:
-
ygopro
-
dist
.exec_linux
:
extends
:
.exec_linux_common
...
...
@@ -130,11 +147,13 @@ exec_windows:
SERVER_ZIP_SUPPORT
:
'
1'
EVENT_INCLUDE_DIR
:
/usr/share/libevent-stable/include
EVENT_LIB_DIR
:
/usr/share/libevent-stable/lib
RELEASE_DIR
:
linux-x64
.exec_debian
:
extends
:
.exec_linux_common
variables
:
LUA_DEB
:
'
1'
RELEASE_DIR
:
debian-x64
before_script
:
-
apt update; apt -y install git build-essential liblua5.3-dev libsqlite3-dev libevent-dev
...
...
@@ -142,9 +161,21 @@ exec_windows:
tags
:
-
arm
.use_pro3
:
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder:fpic
variables
:
SERVER_PRO3_SUPPORT
:
'
1'
TARGET_FILE
:
libygoserver.so
exec_linux
:
extends
:
.exec_linux
exec_linux_pro3
:
extends
:
-
.exec_linux
-
.use_pro3
exec_debian
:
extends
:
.exec_debian
...
...
@@ -152,11 +183,23 @@ exec_linuxarm:
extends
:
-
.exec_linux
-
.use_arm
variables
:
RELEASE_DIR
:
linux-arm
exec_linuxarm_pro3
:
extends
:
-
.exec_linux
-
.use_arm
-
.use_pro3
variables
:
RELEASE_DIR
:
linux-arm
exec_debianarm
:
extends
:
-
.exec_debian
-
.use_arm
variables
:
RELEASE_DIR
:
debian-arm
#win_server_pack:
# stage: pack
...
...
@@ -172,9 +215,14 @@ upload_to_minio:
stage
:
deploy
dependencies
:
-
exec_windows
-
exec_linux
-
exec_linuxarm
-
exec_debian
-
exec_debianarm
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.mycard.moe:9000
cp ygopro.exe s3://mycard/koishipro/server/ygopro.exe
-
aws s3 --endpoint=https://minio.mycard.moe:9000
sync --delete dist/ s3://mycard/koishipro/server
only
:
-
server
-
tags
gframe/gframe.h
0 → 100644
View file @
70e28007
#include "config.h"
#include "game.h"
#include "data_manager.h"
#include <event2/thread.h>
#include <memory>
#ifdef __APPLE__
#import <CoreFoundation/CoreFoundation.h>
#endif
int
main
(
int
argc
,
char
*
argv
[]);
gframe/serverapi.cpp
0 → 100644
View file @
70e28007
#include "serverapi.h"
namespace
ygo
{
extern
"C"
DECL_DLLEXPORT
int
start_server
(
const
char
*
args
)
{
int
argc
=
1
;
char
**
argv
=
new
char
*
[
13
];
argv
[
0
]
=
"ygoserver"
;
size_t
argLength
=
strlen
(
args
);
for
(
size_t
i
=
1
,
j
=
0
;
j
<
argLength
;
)
{
while
(
args
[
j
]
==
' '
&&
j
<
argLength
)
{
++
j
;
}
if
(
j
<
argLength
)
{
size_t
tokenLength
=
0
;
while
(
args
[
j
+
tokenLength
]
!=
' '
&&
args
[
j
+
tokenLength
]
!=
'\0'
)
{
++
tokenLength
;
}
char
*
currentToken
=
new
char
[
tokenLength
+
1
];
strncpy
(
currentToken
,
args
+
j
,
tokenLength
);
currentToken
[
tokenLength
]
=
'\0'
;
argv
[
i
]
=
currentToken
;
i
++
;
j
+=
tokenLength
;
argc
++
;
}
}
int
result
=
main
(
argc
,
argv
);
delete
[]
argv
;
return
result
;
}
extern
"C"
DECL_DLLEXPORT
void
stop_server
()
{
NetServer
::
StopServer
();
}
}
gframe/serverapi.h
0 → 100644
View file @
70e28007
#ifndef SERVERAPI_H
#define SERVERAPI_H
#include "game.h"
#include "netserver.h"
#include "network.h"
#include "config.h"
#include "data_manager.h"
#include "gframe.h"
#include <event2/thread.h>
#include <memory>
#ifdef WIN32
#define DECL_DLLEXPORT __declspec(dllexport)
#else
#define DECL_DLLEXPORT
#endif
namespace
ygo
{
extern
"C"
DECL_DLLEXPORT
int
start_server
(
const
char
*
args
);
extern
"C"
DECL_DLLEXPORT
void
stop_server
();
}
#endif // !SERVERAPI_H
ocgcore
@
59563d73
Subproject commit
236a414e34db17905ac4ac1eb0669d441adbebc3
Subproject commit
59563d732ecd7edf8a83d5547a3fbbf1dde2b44a
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