Commit 06fff20f authored by nanahira's avatar nanahira

update ci for static build

parent db28d940
Pipeline #36852 passed with stages
in 5 minutes and 2 seconds
...@@ -23,6 +23,9 @@ mat_common: ...@@ -23,6 +23,9 @@ mat_common:
# freetype # freetype
- wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/freetype-2.13.3.tar.gz | tar zfx - - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/freetype-2.13.3.tar.gz | tar zfx -
- mv freetype-2.13.3 freetype - 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 # irrlicht
- ./.ci/prepare-irrlicht.sh - ./.ci/prepare-irrlicht.sh
# miniaudio # miniaudio
...@@ -34,6 +37,7 @@ mat_common: ...@@ -34,6 +37,7 @@ mat_common:
- lua - lua
- freetype - freetype
- sqlite3 - sqlite3
- event
- irrlicht - irrlicht
- miniaudio - miniaudio
...@@ -72,7 +76,6 @@ mat_macos: ...@@ -72,7 +76,6 @@ mat_macos:
tags: tags:
- linux - linux
script: script:
- 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 - - wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta6-macosx.tar.gz | tar zfx -
- chmod +x premake5 - chmod +x premake5
artifacts: artifacts:
...@@ -84,31 +87,24 @@ mat_windows: ...@@ -84,31 +87,24 @@ mat_windows:
tags: tags:
- linux - linux
script: script:
- apt update; apt -y install wget tar patch p7zip-full
# premake5.exe # premake5.exe
- wget https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta6-windows.zip - 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 - 7z x -y premake-5.0.0-beta6-windows.zip
# 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
artifacts: artifacts:
paths: paths:
- premake5.exe - premake5.exe
- event
exec_windows: ._exec_build:
stage: build stage: build
exec_windows:
extends: ._exec_build
tags: tags:
- vs - vs
dependencies: dependencies:
- mat_common - mat_common
- mat_windows - mat_windows
- mat_submodules - mat_submodules
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- bin/
- obj/
script: script:
- bash -c 'cp -rf premake/* . ; cp -rf resource/* .' - bash -c 'cp -rf premake/* . ; cp -rf resource/* .'
- '.\premake5.exe vs2019' - '.\premake5.exe vs2019'
...@@ -118,33 +114,31 @@ exec_windows: ...@@ -118,33 +114,31 @@ exec_windows:
paths: paths:
- ygopro.exe - ygopro.exe
.exec_unix:
extends: ._exec_build
variables:
BUILD_FREETYPE: '1'
BUILD_SQLITE: '1'
BUILD_IRRLICHT: '1'
BUILD_EVENT: '1'
BUILD_OPUS_VORBIS: '1'
AUDIO_LIB: 'miniaudio'
MINIAUDIO_SUPPORT_OPUS_VORBIS: '1'
BUILD_OPUS_VORBIS: '1'
before_script:
- ./.ci/configure-libevent.sh
exec_linux: exec_linux:
stage: build extends: .exec_unix
tags: tags:
- linux - avx2
image: git-registry.moenext.com/mycard/docker-ygopro-builder:latest image: git-registry.moenext.com/mycard/docker-ygopro-builder:latest
dependencies: dependencies:
- mat_common - mat_common
#- mat_linux #- mat_linux
- mat_submodules - mat_submodules
variables:
EVENT_INCLUDE_DIR: /usr/share/libevent-stable/include
EVENT_LIB_DIR: /usr/share/libevent-stable/lib
OPUS_INCLUDE_DIR: $CI_PROJECT_DIR/miniaudio/external-built/include/opus
OPUS_LIB_DIR: $CI_PROJECT_DIR/miniaudio/external-built/lib
OPUSFILE_INCLUDE_DIR: $CI_PROJECT_DIR/miniaudio/external-built/include/opus
OPUSFILE_LIB_DIR: $CI_PROJECT_DIR/miniaudio/external-built/lib
VORBIS_INCLUDE_DIR: $CI_PROJECT_DIR/miniaudio/external-built/include
VORBIS_LIB_DIR: $CI_PROJECT_DIR/miniaudio/external-built/lib
OGG_INCLUDE_DIR: $CI_PROJECT_DIR/miniaudio/external-built/include
OGG_LIB_DIR: $CI_PROJECT_DIR/miniaudio/external-built/lib
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- bin/
- obj/
script: script:
- ./.ci/build-opus.sh - ./.ci/configure-audio.sh
- premake5 gmake --build-freetype --build-sqlite - premake5 gmake --build-freetype --build-sqlite
- cd build - cd build
- make config=release -j$(nproc) - make config=release -j$(nproc)
...@@ -156,16 +150,11 @@ exec_linux: ...@@ -156,16 +150,11 @@ exec_linux:
- ygopro - ygopro
.exec_macos_platform: .exec_macos_platform:
stage: build extends: .exec_unix
dependencies: dependencies:
- mat_macos - mat_macos
- mat_common - mat_common
- mat_submodules - mat_submodules
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- bin/
- obj/
script: ./.ci/exec-macos-platform.sh script: ./.ci/exec-macos-platform.sh
artifacts: artifacts:
paths: paths:
...@@ -180,8 +169,6 @@ exec_macos_platform_m1: ...@@ -180,8 +169,6 @@ exec_macos_platform_m1:
extends: .exec_macos_platform extends: .exec_macos_platform
tags: tags:
- macos-m1 - macos-m1
variables:
MAC_ARM: 1
exec_macos: exec_macos:
stage: combine stage: combine
......
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