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
146b3a72
Commit
146b3a72
authored
Mar 20, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add gitlab ci
parent
78edd60d
Pipeline
#33970
failed with stages
in 2 minutes and 45 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
1 deletion
+61
-1
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+59
-0
premake/dll.lua
premake/dll.lua
+1
-1
No files found.
.gitignore
View file @
146b3a72
...
@@ -9,3 +9,4 @@
...
@@ -9,3 +9,4 @@
/*.sh
/*.sh
/test-wasm
/test-wasm
/wasm
/wasm
/dist
.gitlab-ci.yml
0 → 100644
View file @
146b3a72
stages
:
-
prepare
-
build
-
deploy
variables
:
GIT_DEPTH
:
"
1"
lua
:
stage
:
prepare
tags
:
-
linux
script
:
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/lua-5.4.4.tar.gz | tar zfx -
-
mv lua-5.4.4 lua
-
cp premake/lua.lua lua/premake5.lua
artifacts
:
paths
:
-
lua
.build
:
stage
:
build
tags
:
-
linux
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder
variables
:
PREMAKE_OS
:
linux
BUILD_TYPE
:
x64
DIST_PATH
:
build/bin/x64/Release
script
:
-
ln -sf premake/dll.lua .
-
premake5 gmake --file=dll.lua --system=$PREMAKE_OS
-
cd build
-
make config=release_${BUILD_TYPE} -j$(nproc)
-
cd ..
-
mkdir -p dist/$BUILD_TYPE
-
cp $DIST_PATH/libocgcore.* dist/$BUILD_TYPE/
artifacts
:
paths
:
-
dist
build_x64
:
extends
:
.build
build_x32
:
extends
:
.build
variables
:
BUILD_TYPE
:
x32
DIST_PATH
:
build/bin/x32/Release
build_wasm
:
extends
:
.build
variables
:
PREMAKE_OS
:
emscripten
BUILD_TYPE
:
wasm
DIST_PATH
:
wasm
before_script
:
-
mkdir -p wasm
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder:emscripten
premake/dll.lua
View file @
146b3a72
...
@@ -88,4 +88,4 @@ project "ocgcore"
...
@@ -88,4 +88,4 @@ project "ocgcore"
filter
"system:emscripten"
filter
"system:emscripten"
targetextension
".wasm"
targetextension
".wasm"
linkoptions
{
"-s MODULARIZE=1"
,
"-s EXPORT_NAME=\"
createOcgcore
\
""
,
"--no-entry"
,
"-s EXPORTED_FUNCTIONS=[\"
_set_script_reader
\
",\"
_set_card_reader
\
",\"
_set_message_handler
\
",\"
_create_duel
\
",\"
_start_duel
\
",\"
_end_duel
\
",\"
_set_player_info
\
",\"
_get_log_message
\
",\"
_get_message
\
",\"
_process
\
",\"
_new_card
\
",\"
_new_tag_card
\
",\"
_query_card
\
",\"
_query_field_count
\
",\"
_query_field_card
\
",\"
_query_field_info
\
",\"
_set_responsei
\
",\"
_set_responseb
\
",\"
_preload_script
\
"]"
,
"-s ENVIRONMENT=web,node"
,
"-s EXPORTED_RUNTIME_METHODS=[\"
ccall
\
",\"
cwrap
\
",\"
addFunction
\
",\"
removeFunction
\
"]"
,
"-s ALLOW_TABLE_GROWTH=1"
,
"-s ALLOW_MEMORY_GROWTH=1"
,
"-o ../wasm/ocgcore.js"
}
linkoptions
{
"-s MODULARIZE=1"
,
"-s EXPORT_NAME=\"
createOcgcore
\
""
,
"--no-entry"
,
"-s EXPORTED_FUNCTIONS=[\"
_set_script_reader
\
",\"
_set_card_reader
\
",\"
_set_message_handler
\
",\"
_create_duel
\
",\"
_start_duel
\
",\"
_end_duel
\
",\"
_set_player_info
\
",\"
_get_log_message
\
",\"
_get_message
\
",\"
_process
\
",\"
_new_card
\
",\"
_new_tag_card
\
",\"
_query_card
\
",\"
_query_field_count
\
",\"
_query_field_card
\
",\"
_query_field_info
\
",\"
_set_responsei
\
",\"
_set_responseb
\
",\"
_preload_script
\
"]"
,
"-s ENVIRONMENT=web,node"
,
"-s EXPORTED_RUNTIME_METHODS=[\"
ccall
\
",\"
cwrap
\
",\"
addFunction
\
",\"
removeFunction
\
"]"
,
"-s ALLOW_TABLE_GROWTH=1"
,
"-s ALLOW_MEMORY_GROWTH=1"
,
"-o ../wasm/
lib
ocgcore.js"
}
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