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
6487ce0f
Commit
6487ce0f
authored
May 26, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update server ci
parent
82d51d78
Pipeline
#36846
failed with stages
in 1 minute and 4 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
182 additions
and
113 deletions
+182
-113
.gitlab-ci.yml
.gitlab-ci.yml
+164
-60
.travis.yml
.travis.yml
+0
-27
appveyor.yml
appveyor.yml
+18
-26
No files found.
.gitlab-ci.yml
View file @
6487ce0f
...
...
@@ -14,14 +14,21 @@ mat_common:
-
linux
script
:
# lua
-
wget -O - https://cdn0
1.moecube.com/ygopro-build-materials/lua-5.4.4
.tar.gz | tar zfx -
-
mv lua-5.4.
4
lua
-
wget -O - https://cdn0
2.moecube.com:444/ygopro-build-materials/lua-5.4.7
.tar.gz | tar zfx -
-
mv lua-5.4.
7
lua
# sqlite3
-
wget -O - https://cdn0
1.moecube.com/ygopro-build-materials/sqlite-autoconf-33903
00.tar.gz | tar zfx -
-
mv sqlite-autoconf-3
3903
00 sqlite3
-
wget -O - https://cdn0
2.moecube.com:444/ygopro-build-materials/sqlite-autoconf-34901
00.tar.gz | tar zfx -
-
mv sqlite-autoconf-3
4901
00 sqlite3
# freetype
#- wget -O - https://cdn01.moecube.com/ygopro-build-materials/freetype-2.11.1.tar.gz | tar zfx -
#- mv freetype-2.11.1 freetype
#- wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/freetype-2.13.3.tar.gz | tar zfx -
#- mv freetype-2.13.3 freetype
# event
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/libevent-2.1.12-stable.tar.gz | tar zfx -
-
mv libevent-2.1.12-stable event
# irrlicht
-
./.ci/prepare-irrlicht.sh
# miniaudio
#- ./.ci/prepare-miniaudio.sh
# premake
-
cp -rf premake/* .;
artifacts
:
...
...
@@ -29,6 +36,9 @@ mat_common:
-
lua
#- freetype
-
sqlite3
-
event
-
irrlicht
#- miniaudio
mat_submodules
:
stage
:
prepare
...
...
@@ -44,21 +54,29 @@ mat_submodules:
-
ocgcore
-
script
mat_linux
:
#mat_linux:
# stage: prepare
# tags:
# - linux
# image: git-registry.mycard.moe/mycard/docker-runner-base:debian11
# script:
# - apt update; apt -y install git wget tar
# - ./.ci/prepare-irrlicht.sh
# artifacts:
# paths:
# - irrlicht
mat_macos
:
stage
:
prepare
tags
:
-
linux
script
:
-
apt update; apt -y install git wget tar
-
git clone --depth=1 https://code.mycard.moe/mycard/irrlicht-new irrlicht
# - wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-beta5-linux.tar.gz | tar zfx -
# - env PROCESSOR_COUNT=$(nproc) ./.ci/libevent-prebuild.sh
-
apt update; apt -y install wget tar
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta6-macosx.tar.gz | tar zfx -
-
chmod +x premake5
artifacts
:
paths
:
# - premake5
-
irrlicht
# - libevent-stable
image
:
git-registry.mycard.moe/mycard/docker-runner-base:debian11
-
premake5
mat_windows
:
stage
:
prepare
...
...
@@ -67,30 +85,23 @@ mat_windows:
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
# event
-
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 https://code.mycard.moe/mycard/irrlicht-new irrlicht
-
wget https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta6-windows.zip
-
7z x -y premake-5.0.0-beta6-windows.zip
artifacts
:
paths
:
-
premake5.exe
-
event
# - irrlicht
._exec_build
:
stage
:
build
#variables:
# NO_LUA_SAFE: '1' # on client no lua safe
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
-
bin/
-
obj/
#
cache:
#
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
#
paths:
#
- bin/
#
- obj/
exec_windows
:
.
exec_windows
:
extends
:
._exec_build
tags
:
-
vs
...
...
@@ -98,56 +109,134 @@ exec_windows:
-
mat_common
-
mat_windows
-
mat_submodules
script
:
before_
script
:
-
bash -c 'cp -rf premake/* . ; cp -rf resource/* .'
-
'
.\premake5.exe
vs2019'
-
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_linux
:
exec_windows
:
extends
:
.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 /p:Platform=x64'
-
mkdir dist
-
mkdir dist\windows
-
copy bin\release\x64\ygopro.exe dist\windows\ygopro.exe
exec_windows_pro3
:
extends
:
.exec_windows
script
:
-
'
.\premake5.exe
vs2019
--server-pro3-support
--log-in-chat'
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" build\YGOPro.sln /m /p:Configuration=Release /p:Platform=x64'
-
mkdir dist
-
mkdir dist\windows
-
copy bin\release\x64\ygoserver.dll dist\windows\ygoserver.dll
.exec_unix_common
:
extends
:
._exec_build
tags
:
-
linux
dependencies
:
-
mat_common
-
mat_linux
-
mat_submodules
variables
:
RELEASE_DIR
:
'
'
TARGET_FILE
:
ygopro
PREMAKE5_BIN
:
premake5
script
:
-
apt update; apt -y install git build-essential
-
premake5 gmake --build-sqlite --server-zip-support
-
./.ci/configure-libevent.sh
-
$PREMAKE5_BIN 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
-
|
if [ "$TARGET_FILE" = "ygopro" ]; then
strip dist/$RELEASE_DIR/$TARGET_FILE
fi
artifacts
:
paths
:
-
ygopro
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder:latest
-
dist
exec_debia
n
:
extends
:
.
_exec_build
.exec_linux_commo
n
:
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
:
BUILD_SQLITE
:
'
1'
SERVER_ZIP_SUPPORT
:
'
1'
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.4-dev libsqlite3-dev libevent-dev
.use_arm
:
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder:fpic
tags
:
-
arm
exec_linux
:
extends
:
.exec_linux
tags
:
-
noavx2
exec_debian
:
extends
:
.exec_debian
.exec_macos_platform
:
extends
:
.exec_unix_common
dependencies
:
-
mat_common
-
mat_
linux
-
mat_
macos
-
mat_submodules
variables
:
PREMAKE5_BIN
:
./premake5
BUILD_SQLITE
:
'
1'
BUILD_EVENT
:
'
1'
SERVER_ZIP_SUPPORT
:
'
1'
before_script
:
-
rm -rf sqlite3/VERSION sqlite3/version
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
:
stage
:
combine
tags
:
-
macos
dependencies
:
-
exec_macos_x64
-
exec_macos_arm64
script
:
-
apt update; apt -y install git build-essential liblua5.3-dev libsqlite3-dev libevent-dev
-
premake5 gmake --lua-deb
-
cd build
-
make config=release -j$(nproc)
-
cd ..
-
mv bin/release/ygopro ./ygopro
-
strip ygopro
-
mkdir -p dist/macos
-
lipo -create -output dist/macos/ygopro dist/macos-x64/ygopro dist/macos-arm64/ygopro
-
rm -rf dist/macos-x64 dist/macos-arm64
artifacts
:
paths
:
-
ygopro
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder:latest
-
dist
#win_server_pack:
# stage: pack
...
...
@@ -158,3 +247,18 @@ exec_debian:
# script:
# - apt update; apt -y install p7zip-full wget
# - wget https://nodejs.org/dist/v14.17.0/node-v14.17.0-win-x64.7z
upload_to_minio
:
stage
:
deploy
dependencies
:
-
exec_windows
-
exec_linux
-
exec_debian
-
exec_macos
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/ygopro-server-builds
only
:
-
server
-
tags
.travis.yml
deleted
100644 → 0
View file @
82d51d78
language
:
cpp
dist
:
bionic
git
:
submodules
:
false
addons
:
ssh_known_hosts
:
-
github.com
apt
:
# sources:
# - ubuntu-toolchain-r-test
packages
:
# - gcc-6
# - g++-6
-
libevent-dev
-
libsqlite3-dev
-
liblua5.3-dev
before_install
:
-
git submodule update --init --recursive
#- sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
#- sudo ln -s /usr/bin/g++-6 /usr/local/bin/g++
#- g++ --version
-
wget -O - https://github.com/premake/premake-core/releases/download/v5.0.0-beta1/premake-5.0.0-beta1-linux.tar.gz | tar zfx -
#- wget -O - https://www.lua.org/ftp/lua-5.3.6.tar.gz | tar zfx -; cd lua-5.3.6; sudo make linux install; cd ..
script
:
-
./premake5 gmake
-
cd build
-
make config=release
appveyor.yml
View file @
6487ce0f
...
...
@@ -9,32 +9,33 @@ install:
-
git submodule update --init --recursive
# environment and system dependency
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/premake/premake-core/releases/download/v5.0.0-beta
3/premake-5.0.0-beta3
-windows.zip ; exit 0"
-
7z x premake-5.0.0-beta
3
-windows.zip
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/premake/premake-core/releases/download/v5.0.0-beta
6/premake-5.0.0-beta6
-windows.zip ; exit 0"
-
7z x premake-5.0.0-beta
6
-windows.zip
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz ; exit 0"
-
tar xf libevent-2.0.22-stable.tar.gz
-
move libevent-2.0.22-stable event
-
xcopy /E event\WIN32-Code event\include
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz ; exit 0"
-
tar xf libevent-2.1.12-stable.tar.gz
-
move libevent-2.1.12-stable event
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.lua.org/ftp/lua-5.4.7.tar.gz ; exit 0"
-
tar xf lua-5.4.7.tar.gz
-
move lua-5.4.7 lua
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2024/sqlite-amalgamation-3470000.zip ; exit 0"
-
7z x sqlite-amalgamation-3470000.zip
-
move sqlite-amalgamation-3470000 sqlite3
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2025/sqlite-amalgamation-3490100.zip ; exit 0"
-
7z x sqlite-amalgamation-3490100.zip
-
move sqlite-amalgamation-3490100 sqlite3
-
git clone --depth=1 https://github.com/mercury233/irrlicht
before_build
:
-
xcopy /E premake\* .
-
xcopy /E resource\* .
-
premake5 vs2022
configuration
:
Release
build
:
project
:
build/YGOPro.sln
parallel
:
true
project
:
build/YGOPro.sln
parallel
:
true
configuration
:
Release
platform
:
x64
test
:
off
...
...
@@ -45,29 +46,20 @@ for:
-
SERVER_PRO2_SUPPORT
:
true
before_build
:
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.5.zip ; exit 0"
-
7z x irrlicht-1.8.5.zip
-
move irrlicht-1.8.5 irrlicht
-
xcopy /E premake\* .
-
xcopy /E resource\* .
-
cd irrlicht
-
patch -p1 < irrlicht.patch
-
cd ..
-
premake5 vs2022
after_build
:
-
ps
:
move bin\release\AI.Server.exe .
-
ps
:
move bin\release\
x64\
AI.Server.exe .
artifacts
:
-
path
:
AI.Server.exe
name
:
YGOPro server for YGOPro2 AI
cache
:
-
premake-5.0.0-beta3-windows.zip
-
libevent-2.0.22-stable.tar.gz
-
irrlicht-1.8.5.zip
-
premake-5.0.0-beta6-windows.zip
-
libevent-2.1.12-stable.tar.gz
-
lua-5.4.7.tar.gz
-
sqlite-amalgamation-34
700
00.zip
-
sqlite-amalgamation-34
901
00.zip
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