File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,28 @@ jobs:
5656 restore-keys : |
5757 Library-
5858
59- # Build the project using Unity Builder (updated image)
59+ # Pull Unity image and Build project using Unity Builder
6060 - name : Build project
61- uses : game-ci/unity-builder@v2
62- with :
63- targetPlatform : WebGL # Use WebGL platform directly
64- unityVersion : 2022.3.10f1 # Ensure the Unity version is set correctly
65- allowDirtyBuild : true
61+ run : |
62+ docker pull unityci/editor # Ensure the latest image is pulled
63+ docker run --rm \
64+ -v $GITHUB_WORKSPACE:/workspace \
65+ -e UNITY_LICENSE=$UNITY_LICENSE \
66+ -e UNITY_EMAIL=$UNITY_EMAIL \
67+ -e UNITY_PASSWORD=$UNITY_PASSWORD \
68+ -e UNITY_SERIAL=$UNITY_SERIAL \
69+ -e UNITY_VERSION=2022.3.10f1 \
70+ -e BUILD_PATH=$BUILD_PATH \
71+ -e BUILD_NAME=WebGL \
72+ -e BUILD_TARGET=WebGL \
73+ unityci/editor /bin/bash -c "/workspace/entrypoint.sh"
6674 env :
6775 UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
6876 UNITY_EMAIL : ${{ secrets.UNITY_EMAIL }}
6977 UNITY_PASSWORD : ${{ secrets.UNITY_PASSWORD }}
78+ UNITY_SERIAL : ${{ secrets.UNITY_SERIAL }}
7079 BUILD_PATH : ${{ secrets.BUILD_PATH }}
71- BUILD_NAME : WebGL
80+ GITHUB_WORKSPACE : ${{ github.workspace }}
7281
7382 # Upload build artifact
7483 - name : Upload Build Artifact
You can’t perform that action at this time.
0 commit comments