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:
56
56
restore-keys : |
57
57
Library-
58
58
59
- # Build the project using Unity Builder (updated image)
59
+ # Pull Unity image and Build project using Unity Builder
60
60
- 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"
66
74
env :
67
75
UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
68
76
UNITY_EMAIL : ${{ secrets.UNITY_EMAIL }}
69
77
UNITY_PASSWORD : ${{ secrets.UNITY_PASSWORD }}
78
+ UNITY_SERIAL : ${{ secrets.UNITY_SERIAL }}
70
79
BUILD_PATH : ${{ secrets.BUILD_PATH }}
71
- BUILD_NAME : WebGL
80
+ GITHUB_WORKSPACE : ${{ github.workspace }}
72
81
73
82
# Upload build artifact
74
83
- name : Upload Build Artifact
You can’t perform that action at this time.
0 commit comments