Commit 54907993 authored by nanahira's avatar nanahira

update ci

parent 184c8798
Pipeline #35964 canceled with stages
in 10 minutes and 14 seconds
...@@ -5,4 +5,4 @@ set -o errexit ...@@ -5,4 +5,4 @@ set -o errexit
apt update && apt -y install tar git zstd apt update && apt -y install tar git zstd
mkdir dist replay mkdir dist replay
tar --zstd -cf dist/ygopro-$CI_COMMIT_REF_NAME-linux-$TARGET_LOCALE.tar.zst --exclude='.git*' ygopro LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf pack tar --zstd -cf dist/ygopro-$CI_COMMIT_REF_NAME-linux-$TARGET_LOCALE.tar.zst --exclude='.git*' ygopro LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf pack fonts
...@@ -5,4 +5,4 @@ set -o errexit ...@@ -5,4 +5,4 @@ set -o errexit
apt update && apt -y install tar git zstd apt update && apt -y install tar git zstd
mkdir dist replay mkdir dist replay
tar --zstd -cf dist/ygopro-$CI_COMMIT_REF_NAME-darwin-$TARGET_LOCALE.tar.zst --exclude='.git*' ygopro.app LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf pack tar --zstd -cf dist/ygopro-$CI_COMMIT_REF_NAME-darwin-$TARGET_LOCALE.tar.zst --exclude='.git*' ygopro.app LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf pack fonts
...@@ -5,4 +5,4 @@ set -o errexit ...@@ -5,4 +5,4 @@ set -o errexit
apt update && apt -y install tar git zstd apt update && apt -y install tar git zstd
mkdir dist replay mkdir dist replay
tar --zstd -cf dist/ygopro-$CI_COMMIT_REF_NAME-win32-$TARGET_LOCALE.tar.zst --exclude='.git*' ygopro.exe LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound bot.conf Bot.exe WindBot pack tar --zstd -cf dist/ygopro-$CI_COMMIT_REF_NAME-win32-$TARGET_LOCALE.tar.zst --exclude='.git*' ygopro.exe LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound bot.conf Bot.exe WindBot pack fonts
...@@ -15,13 +15,13 @@ mat_common: ...@@ -15,13 +15,13 @@ mat_common:
- linux - linux
script: script:
# lua # lua
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/lua-5.4.4.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/lua-5.4.4.tar.gz | tar zfx -
- mv lua-5.4.4 lua - mv lua-5.4.4 lua
# sqlite3 # sqlite3
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/sqlite-autoconf-3390300.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/sqlite-autoconf-3390300.tar.gz | tar zfx -
- mv sqlite-autoconf-3390300 sqlite3 - mv sqlite-autoconf-3390300 sqlite3
# freetype # freetype
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/freetype-2.11.1.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/freetype-2.11.1.tar.gz | tar zfx -
- mv freetype-2.11.1 freetype - mv freetype-2.11.1 freetype
# miniaudio # miniaudio
- ./.ci/prepare-miniaudio.sh - ./.ci/prepare-miniaudio.sh
...@@ -54,8 +54,8 @@ mat_linux: ...@@ -54,8 +54,8 @@ mat_linux:
- linux - linux
script: script:
- apt update; apt -y install git wget tar - apt update; apt -y install git wget tar
- git clone --depth=1 https://code.mycard.moe/mycard/irrlicht-new irrlicht - ./.ci/prepare-irrlicht.sh
# - wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-beta5-linux.tar.gz | tar zfx - # - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta5-linux.tar.gz | tar zfx -
# - env PROCESSOR_COUNT=$(nproc) ./.ci/libevent-prebuild.sh # - env PROCESSOR_COUNT=$(nproc) ./.ci/libevent-prebuild.sh
artifacts: artifacts:
paths: paths:
...@@ -70,11 +70,11 @@ mat_macos: ...@@ -70,11 +70,11 @@ mat_macos:
- linux - linux
script: script:
- apt update; apt -y install wget tar - apt update; apt -y install wget tar
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-beta5-macosx.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta5-macosx.tar.gz | tar zfx -
- chmod +x premake5 - chmod +x premake5
- mkdir irrlicht - mkdir irrlicht
- cd irrlicht - cd irrlicht
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/irrlicht-mycard-mac.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/irrlicht-mycard-mac.tar.gz | tar zfx -
- cd .. - cd ..
artifacts: artifacts:
paths: paths:
...@@ -88,13 +88,13 @@ mat_windows: ...@@ -88,13 +88,13 @@ mat_windows:
script: script:
- apt update; apt -y install wget tar patch p7zip-full - apt update; apt -y install wget tar patch p7zip-full
# premake5.exe # premake5.exe
- wget https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-beta5-windows.zip - wget https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta5-windows.zip
- 7z x -y premake-5.0.0-beta5-windows.zip - 7z x -y premake-5.0.0-beta5-windows.zip
# event # event
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx -
- mv libevent-2.0.22-stable event - mv libevent-2.0.22-stable event
# irrlicht # irrlicht
- git clone --depth=1 -b develop https://code.mycard.moe/mycard/irrlicht-new irrlicht - ./.ci/prepare-irrlicht.sh
artifacts: artifacts:
paths: paths:
- premake5.exe - premake5.exe
...@@ -226,18 +226,20 @@ assets: ...@@ -226,18 +226,20 @@ assets:
script: script:
- apt update; apt -y install tar wget git - apt update; apt -y install tar wget git
# starter pack # starter pack
- wget -O - https://code.mycard.moe/mycard/ygopro-starter-pack/-/archive/master/ygopro-starter-pack-master.tar.gz | tar zfx - - wget -O - https://code.moenext.com/mycard/ygopro-starter-pack/-/archive/master/ygopro-starter-pack-master.tar.gz | tar zfx -
- mv ygopro-starter-pack-master/* . - mv ygopro-starter-pack-master/* .
# sound # sound
- wget -O - https://code.mycard.moe/mycard/ygopro-sounds/-/archive/master/ygopro-sounds-master.tar.gz | tar zfx - - wget -O - https://code.moenext.com/mycard/ygopro-sounds/-/archive/master/ygopro-sounds-master.tar.gz | tar zfx -
- mv ygopro-sounds-master/sound/* sound - mv ygopro-sounds-master/sound/* sound
# fonts # fonts
- mkdir fonts - mkdir fonts
- cd fonts - cd fonts
- wget -O - https://cdn01.moecube.com/ygopro-fonts.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/ygopro-fonts.tar.gz | tar zfx -
- mv simhei.ttf textFont.ttf
- mv arial.ttf numFont.ttf
- cd .. - cd ..
# pack # pack
- git clone --depth=1 https://code.mycard.moe/mycard/ygopro-card-list - git clone --depth=1 https://code.moenext.com/mycard/ygopro-card-list
- mv ygopro-card-list/pack . - mv ygopro-card-list/pack .
artifacts: artifacts:
paths: paths:
...@@ -256,7 +258,7 @@ assets_nonwindows: ...@@ -256,7 +258,7 @@ assets_nonwindows:
- linux - linux
script: script:
- apt update; apt -y install tar wget - apt update; apt -y install tar wget
- wget -O - https://cdn01.moecube.com/windbot-mc/windbot.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/windbot-mc/windbot.tar.gz | tar zfx -
artifacts: artifacts:
paths: paths:
- bot.conf - bot.conf
...@@ -272,7 +274,7 @@ assets_windows: ...@@ -272,7 +274,7 @@ assets_windows:
- linux - linux
script: script:
- apt update; apt -y install wget p7zip-full - apt update; apt -y install wget p7zip-full
- wget https://cdn01.moecube.com/windbot-mc/WindBot.7z - wget https://cdn02.moecube.com:444/windbot-mc/WindBot.7z
- 7z x -y WindBot.7z - 7z x -y WindBot.7z
artifacts: artifacts:
paths: paths:
...@@ -469,7 +471,6 @@ upload: ...@@ -469,7 +471,6 @@ upload:
- linux - linux
variables: variables:
appVersion: $CI_COMMIT_TAG appVersion: $CI_COMMIT_TAG
#script: ./.ci/upload-packager.sh script: ./.ci/upload-packager.sh
script: 'true'
only: only:
- tags - tags
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