Commit 0155e2ac authored by nanahira's avatar nanahira

ci

parent ce673190
Pipeline #5210 failed with stages
in 1 minute and 46 seconds
stages: stages:
- ocgcore
- build_and_test - build_and_test
- deploy - deploy
...@@ -36,6 +37,55 @@ image: $IMAGE:$UNITY_VERSION-base-$IMAGE_VERSION ...@@ -36,6 +37,55 @@ image: $IMAGE:$UNITY_VERSION-base-$IMAGE_VERSION
- .cache - .cache
- .license - .license
.common_image:
image: git-registry.mycard.moe/mycard/docker-runner-base
.ocgcore:
extends: .common_image
stage: 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/x64/*.so ../Assets/Plugins/$PLUGIN_PLATFORM/
ocgcore_windows:
extends:
- .ocgcore
tags:
- vs
script:
- cd AI_core_vs2017solution
- 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'
- 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'
- bash -c 'cp -rf Release/ocgcore.dll ../Assets/Plugins/x86/ ; cp -rf x64/Release/ocgcore.dll ../Assets/Plugins/x64/'
artifacts:
paths:
- Assets/Plugins/Release
- Assets/Plugins/x64/Release
ocgcore_linux:
extends:
- .ocgcore_unix
tags:
- linux
variables:
GMAKE_PLATFORM: linux
PLUGIN_PLATFORM: Linux
artifacts:
paths:
- Assets/Plugins/Linux
# run this job when you need to request a license # run this job when you need to request a license
# you may need to follow activation steps from documentation # you may need to follow activation steps from documentation
get-activation-file: get-activation-file:
...@@ -64,15 +114,15 @@ get-activation-file: ...@@ -64,15 +114,15 @@ get-activation-file:
- linux - linux
coverage: /<Linecoverage>(.*?)</Linecoverage>/ coverage: /<Linecoverage>(.*?)</Linecoverage>/
test-playmode: #test-playmode:
extends: .test # extends: .test
variables: # variables:
TEST_PLATFORM: playmode # TEST_PLATFORM: playmode
test-editmode: #test-editmode:
extends: .test # extends: .test
variables: # variables:
TEST_PLATFORM: editmode # TEST_PLATFORM: editmode
# uncomment the following blocks if you'd like to have junit reporting unity test results in gitlab # uncomment the following blocks if you'd like to have junit reporting unity test results in gitlab
# We currently have the following issue which prevents it from working right now, but you can give # We currently have the following issue which prevents it from working right now, but you can give
...@@ -127,18 +177,21 @@ test-editmode: ...@@ -127,18 +177,21 @@ test-editmode:
build-StandaloneLinux64: build-StandaloneLinux64:
extends: .build extends: .build
dependencies:
- ocgcore_linux
variables: variables:
BUILD_TARGET: StandaloneLinux64 BUILD_TARGET: StandaloneLinux64
build-StandaloneLinux64-il2cpp: #build-StandaloneLinux64-il2cpp:
extends: .build # extends: .build
image: $IMAGE:$UNITY_VERSION-linux-il2cpp-$IMAGE_VERSION # image: $IMAGE:$UNITY_VERSION-linux-il2cpp-$IMAGE_VERSION
variables: # variables:
BUILD_TARGET: StandaloneLinux64 # BUILD_TARGET: StandaloneLinux64
SCRIPTING_BACKEND: IL2CPP # SCRIPTING_BACKEND: IL2CPP
build-StandaloneOSX: build-StandaloneOSX:
extends: .build extends: .build
dependencies: [] # todo
image: $IMAGE:$UNITY_VERSION-mac-mono-$IMAGE_VERSION image: $IMAGE:$UNITY_VERSION-mac-mono-$IMAGE_VERSION
variables: variables:
BUILD_TARGET: StandaloneOSX BUILD_TARGET: StandaloneOSX
...@@ -151,37 +204,39 @@ build-StandaloneOSX: ...@@ -151,37 +204,39 @@ build-StandaloneOSX:
build-StandaloneWindows64: build-StandaloneWindows64:
extends: .build extends: .build
dependencies:
- ocgcore_windows
image: $IMAGE:$UNITY_VERSION-windows-mono-$IMAGE_VERSION image: $IMAGE:$UNITY_VERSION-windows-mono-$IMAGE_VERSION
variables: variables:
BUILD_TARGET: StandaloneWindows64 BUILD_TARGET: StandaloneWindows64
# For webgl support, you need to set Compression Format to Disabled for v0.9. See https://github.com/game-ci/docker/issues/75 # For webgl support, you need to set Compression Format to Disabled for v0.9. See https://github.com/game-ci/docker/issues/75
build-WebGL: #build-WebGL:
extends: .build # extends: .build
image: $IMAGE:$UNITY_VERSION-webgl-$IMAGE_VERSION # image: $IMAGE:$UNITY_VERSION-webgl-$IMAGE_VERSION
# Temporary workaround for https://github.com/game-ci/docker/releases/tag/v0.9 and webgl support in current project to prevent errors with missing ffmpeg # Temporary workaround for https://github.com/game-ci/docker/releases/tag/v0.9 and webgl support in current project to prevent errors with missing ffmpeg
before_script: # before_script:
- chmod +x ./ci/before_script.sh && ./ci/before_script.sh # - chmod +x ./ci/before_script.sh && ./ci/before_script.sh
- apt-get update && apt-get install ffmpeg -y # - apt-get update && apt-get install ffmpeg -y
variables: # variables:
BUILD_TARGET: WebGL # BUILD_TARGET: WebGL
build-android: #build-android:
extends: .build # extends: .build
image: $IMAGE:$UNITY_VERSION-android-$IMAGE_VERSION # image: $IMAGE:$UNITY_VERSION-android-$IMAGE_VERSION
variables: # variables:
BUILD_TARGET: Android # BUILD_TARGET: Android
BUNDLE_VERSION_CODE: $CI_PIPELINE_IID # BUNDLE_VERSION_CODE: $CI_PIPELINE_IID
BUILD_APP_BUNDLE: "false" # BUILD_APP_BUNDLE: "false"
build-android-il2cpp: #build-android-il2cpp:
extends: .build # extends: .build
image: $IMAGE:$UNITY_VERSION-android-$IMAGE_VERSION # image: $IMAGE:$UNITY_VERSION-android-$IMAGE_VERSION
variables: # variables:
BUILD_TARGET: Android # BUILD_TARGET: Android
BUNDLE_VERSION_CODE: $CI_PIPELINE_IID # BUNDLE_VERSION_CODE: $CI_PIPELINE_IID
BUILD_APP_BUNDLE: "false" # BUILD_APP_BUNDLE: "false"
SCRIPTING_BACKEND: IL2CPP # SCRIPTING_BACKEND: IL2CPP
#deploy-android: #deploy-android:
# stage: deploy # stage: deploy
...@@ -194,11 +249,11 @@ build-android-il2cpp: ...@@ -194,11 +249,11 @@ build-android-il2cpp:
# - fastlane supply --aab $BUILD_NAME.aab --track internal --package_name com.youcompany.yourgame --json_key ./gpc_token.json # - fastlane supply --aab $BUILD_NAME.aab --track internal --package_name com.youcompany.yourgame --json_key ./gpc_token.json
# needs: ["build-android"] # needs: ["build-android"]
build-ios-xcode: #build-ios-xcode:
extends: .build # extends: .build
image: $IMAGE:$UNITY_VERSION-ios-$IMAGE_VERSION # image: $IMAGE:$UNITY_VERSION-ios-$IMAGE_VERSION
variables: # variables:
BUILD_TARGET: iOS # BUILD_TARGET: iOS
#build-and-deploy-ios: #build-and-deploy-ios:
# stage: deploy # stage: deploy
...@@ -211,21 +266,21 @@ build-ios-xcode: ...@@ -211,21 +266,21 @@ build-ios-xcode:
# - mac # - mac
# needs: ["build-ios-xcode"] # needs: ["build-ios-xcode"]
pages: #pages:
image: alpine:latest # image: alpine:latest
stage: deploy # stage: deploy
script: # script:
- mv "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}" public # - mv "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}" public
artifacts: # artifacts:
paths: # paths:
- public # - public
only: # only:
- master # - master
workflow: #workflow:
rules: # rules:
- if: $CI_MERGE_REQUEST_ID # - if: $CI_MERGE_REQUEST_ID
when: never # when: never
- if: $CI_COMMIT_TAG # - if: $CI_COMMIT_TAG
when: never # when: never
- when: always # - when: always
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