Commit 7de81b28 authored by nanahira's avatar nanahira

use prebuilt dylibs

parent 6ae5a73f
Pipeline #34167 failed
stages: stages:
- fetch_ocgcore
- ocgcore - ocgcore
- build_and_test - build_and_test
- pack - pack
...@@ -45,88 +44,32 @@ image: $IMAGE:$UNITY_VERSION-base-$IMAGE_VERSION ...@@ -45,88 +44,32 @@ image: $IMAGE:$UNITY_VERSION-base-$IMAGE_VERSION
tags: tags:
- linux - linux
fetch_ocgcore:
extends: .common_image
stage: fetch_ocgcore
dependencies: []
script:
- cd AI_core_vs2017solution
# lua
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/lua-5.3.5.tar.gz | tar zfx -
- mv lua-5.3.5/src lua
- rm -rf lua-5.3.5
# sqlite3
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/sqlite-autoconf-3360000.tar.gz | tar zfx -
- mv sqlite-autoconf-3360000 sqlite3
# ocgcore
- git clone --depth=1 https://github.com/mycard/ygopro-core ocgcore
- cd ..
artifacts:
paths:
- AI_core_vs2017solution
.ocgcore:
extends: .common_image
stage: ocgcore
dependencies:
- fetch_ocgcore
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- AI_core_vs2017solution/x64/Release
- AI_core_vs2017solution/Release
- AI_core_vs2017solution/bin
- AI_core_vs2017solution/obj
.ocgcore_unix:
extends: .ocgcore
script:
- cd AI_core_vs2017solution/build/gmake.$GMAKE_PLATFORM/
- make config=release -j$(nproc)
- cd ../..
- cp -rf bin/gmake.$GMAKE_PLATFORM/$OUTPUT_PATH ../Assets/Plugins/$PLUGIN_PLATFORM/
ocgcore_windows: ocgcore_windows:
extends: extends: .common_image
- .ocgcore
tags:
- vs
script: script:
- cd AI_core_vs2017solution - wget -O Assets/Plugins/x86/ocgcore.dll https://cdn02.moecube.com:444/libocgcore-koishi/x32/ocgcore.dll
- bash -c 'cp -rf build/windows/* .' - wget -O Assets/Plugins/x86/sqlite3.dll https://cdn02.moecube.com:444/libocgcore-koishi/x32/sqlite3.dll
- cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" core.sln /m /p:Configuration=Release /p:Platform=x86' - wget -O Assets/Plugins/x64/ocgcore.dll https://cdn02.moecube.com:444/libocgcore-koishi/x64/ocgcore.dll
- cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" core.sln /m /p:Configuration=Release /p:Platform=x64' - wget -O Assets/Plugins/x64/sqlite3.dll https://cdn02.moecube.com:444/libocgcore-koishi/x64/sqlite3.dll
- bash -c 'cp -rf Release/ocgcore.dll ../Assets/Plugins/x86/ ; cp -rf x64/Release/ocgcore.dll ../Assets/Plugins/x64/'
artifacts: artifacts:
paths: paths:
- Assets/Plugins/x86 - Assets/Plugins/x86
- Assets/Plugins/x64 - Assets/Plugins/x64
ocgcore_linux: ocgcore_linux:
extends: extends: .common_image
- .ocgcore_unix script:
tags: - wget -O Assets/Plugins/Linux/libocgcore.so https://cdn02.moecube.com:444/libocgcore-koishi/x64/libocgcore.so
- linux - wget -O Assets/Plugins/Linux/libsqlite3.so https://cdn02.moecube.com:444/libocgcore-koishi/x64/libsqlite3.so
image: git-registry.mycard.moe/mycard/docker-runner-base:buster
before_script:
- apt update; apt -y install clang build-essential
variables:
GMAKE_PLATFORM: linux
PLUGIN_PLATFORM: Linux
OUTPUT_PATH: x64/*.so
artifacts: artifacts:
paths: paths:
- Assets/Plugins/Linux - Assets/Plugins/Linux
ocgcore_macos: ocgcore_macos:
extends: extends: .common_image
- .ocgcore_unix script:
tags: - wget -O Assets/Plugins/MacOS/libocgcore.bundle https://cdn02.moecube.com:444/libocgcore-koishi/macos/libocgcore.dylib
- macos - wget -O Assets/Plugins/MacOS/libsqlite3.bundle https://cdn02.moecube.com:444/libocgcore-koishi/macos/libsqlite3.dylib
variables:
GMAKE_PLATFORM: macos
PLUGIN_PLATFORM: MacOS
OUTPUT_PATH: '*.bundle'
artifacts: artifacts:
paths: paths:
- Assets/Plugins/MacOS - Assets/Plugins/MacOS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment