Commit ebc77c6d authored by nanahira's avatar nanahira

optimize

parent e0b169ac
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -x set -x
set -o errexit set -o errexit
TARGET_YGOPRO_BINARY_PATH=./ygopro-platforms/ygopro-platform-$TARGET_PATFORM TARGET_YGOPRO_BINARY_PATH=./ygopro-platforms/ygopro-platform-$TARGET_ARCH
export YGOPRO_LIBEVENT_STATIC_PATH=$PWD/libevent-stable export YGOPRO_LIBEVENT_STATIC_PATH=$PWD/libevent-stable
git submodule update --init git submodule update --init
......
...@@ -192,18 +192,10 @@ exec_linux: ...@@ -192,18 +192,10 @@ exec_linux:
- ygopro - ygopro
- lib - lib
exec_macos_platform_x86: ._exec_macos_platform:
stage: build stage: build
tags: tags:
- macos - macos
dependencies:
- mat_irrklang
- mat_macos
- mat_common
- mat_macos_platform_x86
variables:
USE_IRRKLANG: "1"
TARGET_PATFORM: x86
cache: cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths: paths:
...@@ -211,31 +203,30 @@ exec_macos_platform_x86: ...@@ -211,31 +203,30 @@ exec_macos_platform_x86:
- obj/ - obj/
script: script:
- ./.ci/exec-macos-platform.sh - ./.ci/exec-macos-platform.sh
- install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib ./ygopro-platforms/ygopro-platform-$TARGET_PATFORM
artifacts: artifacts:
paths: paths:
- ygopro-platforms - ygopro-platforms
exec_macos_platform_x86:
extends: ._exec_macos_platform
dependencies:
- mat_irrklang
- mat_macos
- mat_common
- mat_macos_platform_x86
variables:
TARGET_ARCH: x86
USE_IRRKLANG: "1"
exec_macos_platform_m1: exec_macos_platform_m1:
stage: build extends: ._exec_macos_platform
tags:
- macos
dependencies: dependencies:
- mat_macos - mat_macos
- mat_common - mat_common
- mat_macos_platform_m1 - mat_macos_platform_m1
variables: variables:
TARGET_PATFORM: m1 TARGET_ARCH: m1
YGOPRO_TARGET_ARM: '1' YGOPRO_TARGET_ARM: '1'
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- bin/
- obj/
script: ./.ci/exec-macos-platform.sh
artifacts:
paths:
- ygopro-platforms
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