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
99aae4ba
Commit
99aae4ba
authored
Jun 21, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'server' of
https://github.com/moecube/ygopro
into server
parents
5673ed03
568a50fd
Pipeline
#3769
passed with stages
in 3 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
130 additions
and
0 deletions
+130
-0
.gitlab-ci.yml
.gitlab-ci.yml
+130
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
99aae4ba
stages
:
-
prepare
-
build
-
sign
-
pack
-
deploy
variables
:
GIT_DEPTH
:
"
1"
#USE_IRRKLANG: "1"
mat_lua
:
stage
:
prepare
tags
:
-
linux
script
:
-
apt update; apt -y install wget tar
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/lua-5.3.5.tar.gz | tar zfx -
-
mv lua-5.3.5/src lua
-
cp premake/lua/premake4.lua lua/;
artifacts
:
paths
:
-
lua
mat_linux
:
stage
:
prepare
tags
:
-
linux
script
:
-
apt update; apt -y install git wget tar
#- git clone --depth=1 https://code.mycard.moe/mycard/irrlicht irrlicht_linux
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha14-linux.tar.gz | tar zfx -
artifacts
:
paths
:
-
premake5
#- irrlicht_linux
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-alpha14-windows.zip
-
7z x -y premake-5.0.0-alpha14-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 ; cp -rf event/WIN32-Code/* event/include
# sqlite3
-
wget https://cdn01.moecube.com/ygopro-build-materials/sqlite-amalgamation-3310100.zip
-
7z x -y sqlite-amalgamation-3310100.zip
-
mv sqlite-amalgamation-3310100 sqlite3
artifacts
:
paths
:
-
premake5.exe
-
event
-
sqlite3
exec_windows
:
stage
:
build
tags
:
-
vs
dependencies
:
-
mat_lua
-
mat_windows
#variables:
# irrklang_pro: '1'
cache
:
paths
:
-
bin/
-
obj/
script
:
-
git submodule update --init
-
bash -c 'cp -rf premake/* .'
#- cmd /C "patch -p0 < irrlicht\irrlicht.patch"
-
'
.\premake5.exe
vs2019'
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" build\ygo.sln /m /p:Configuration=Release'
-
copy bin\release\ygopro.exe .
artifacts
:
paths
:
-
ygopro.exe
exec_linux
:
stage
:
build
tags
:
-
linux
dependencies
:
#- mat_irrklang
-
mat_linux
cache
:
paths
:
-
bin/
-
obj/
script
:
-
apt update; apt -y install git build-essential libevent-dev libsqlite3-dev liblua5.3-dev
-
git submodule update --init
-
./premake5 gmake
-
cd build
-
make config=release -j$(nproc)
-
cd ..
-
mv bin/release/ygopro .
-
strip ygopro
artifacts
:
paths
:
-
ygopro
#win_server_pack:
# stage: pack
# dependencies:
# - exec_windows
# tags:
# - linux
# 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
tags
:
-
linux
image
:
python
script
:
-
pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
-
aws s3 --endpoint=https://minio.mycard.moe:9000 cp ygopro.exe s3://mycard/mcpro-server/ygopro.exe
only
:
-
server
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