meta: add Woodpecker CI
This commit is contained in:
		| @@ -10,13 +10,11 @@ matrix: | ||||
|       UNITY_ACTIVATION_FILE: ./unity3d.alf | ||||
|       IMAGE: unityci/editor | ||||
|       IMAGE_VERSION: 1 | ||||
|     # The GitLab version pulls the Unity version from the project information, | ||||
|     # but I don't think Woodpecker will use that as a variable in image names. | ||||
|     # We set the version as a variable instead and check that it's right. | ||||
|       # The GitLab version pulls the Unity version from the project information, | ||||
|       # but I don't think Woodpecker will use that as a variable in image names. | ||||
|       # We set the version as a variable instead and check that it's right. | ||||
|       UNITY_VERSION: 2022.3.4f1 | ||||
|       UNITY_DIR: /studio/idle-survivors | ||||
|       VERSION_NUMBER_VAR: ${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER} | ||||
|       VERSION_BUILD_VAR: ${CI_COMMIT_HASH} | ||||
|  | ||||
| pipeline: | ||||
|   check-unity-version: | ||||
| @@ -38,6 +36,11 @@ pipeline: | ||||
|     environment: | ||||
|       - TEST_PLATFORM=playmode | ||||
|       - TESTING_TYPE=NUNIT | ||||
|       - VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER} | ||||
|       - VERSION_BUILD_VAR=${CI_COMMIT_HASH} | ||||
|     when: | ||||
|       branch: | ||||
|         exclude: [main] | ||||
|   test-editmode: | ||||
|     image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION} | ||||
|     group: test | ||||
| @@ -47,6 +50,11 @@ pipeline: | ||||
|     environment: | ||||
|       - TEST_PLATFORM=editmode | ||||
|       - TESTING_TYPE=NUNIT | ||||
|       - VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER} | ||||
|       - VERSION_BUILD_VAR=${CI_COMMIT_HASH} | ||||
|     when: | ||||
|       branch: | ||||
|         exclude: [main] | ||||
|   build-standalone-windows: | ||||
|     image: ${IMAGE}:${UNITY_VERSION}-windows-mono-${IMAGE_VERSION} | ||||
|     group: build | ||||
| @@ -55,10 +63,14 @@ pipeline: | ||||
|       - ./ci/build.sh | ||||
|     environment: | ||||
|       - BUILD_TARGET=StandaloneWindows64 | ||||
|       - VERSION_NUMBER_VAR=${CI_COMMIT_TAG} | ||||
|       - VERSION_BUILD_VAR=${CI_COMMIT_HASH} | ||||
|     when: | ||||
|       event: tag | ||||
|   package: | ||||
|     image: ${IMAGE}:${UNITY_VERSION}-windows-mono-${IMAGE_VERSION} | ||||
|     commands: | ||||
|       - tar -C ${UNITY_DIR}/Builds -cvzf ${VERSION_NUMBER_VAR}.tar.gz . | ||||
|       - tar -C ${UNITY_DIR}/Builds -cvzf ${CI_COMMIT_TAG}.tar.gz . | ||||
|     when: | ||||
|       event: tag | ||||
|   publish: | ||||
| @@ -67,7 +79,7 @@ pipeline: | ||||
|       api-key: | ||||
|         from_secret: gitea_api_key | ||||
|       files: | ||||
|         - ${VERSION_NUMBER_VAR}.tar.gz | ||||
|         - ${CI_COMMIT_TAG}.tar.gz | ||||
|       target: main | ||||
|       base_url: https://git.sunturtle.xyz | ||||
|     when: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user