diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3de3e83..ace7db6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,14 +5,13 @@ variables: GIT_STRATEGY: fetch UNITY_VERSION: 2020.2.2f1 - SRC_DIR: ./game build: stage: build script: - chmod +x ./ci/build.sh - - ./ci/build.sh $UNITY_VERSION $(pwd)/$SRC_DIR + - ./ci/build.sh $UNITY_VERSION artifacts: name: $CI_PROJECT_NAME-$CI_PIPELINE_ID paths: - - $SRC_DIR/Build/ + - ./game/Build diff --git a/ci/build.sh b/ci/build.sh index 4654bd9..f9f72be 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -1,9 +1,7 @@ # osx unity build shell script # $1 UNITY_VERSION -# $2 SRC_DIR unityversion=$1 -srcdir=$2 editorpath="/Applications/Unity/Hub/Editor/$unityversion/Unity.app" @@ -20,7 +18,7 @@ open -g $editorpath --args \ -nographics \ -executeMethod "Ktyl.Util.BuildCommand.Run" \ -logFile $editorlogpath \ - -projectPath $srcdir + -projectPath "$(pwd)/game" # wait for unity to exit while pgrep -x "Unity" > /dev/null