Skip to content

Commit abe9fc6

Browse files
committed
fix unity build
1 parent a1e1710 commit abe9fc6

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,21 @@ jobs:
5656
5757
# Step 4: Build Unity Project
5858
- name: Build project
59-
uses: game-ci/unity-builder@v2
60-
env:
61-
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
62-
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
63-
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
64-
with:
65-
targetPlatform: ${{ vars.TARGET_PLATFORM }}
66-
buildsPath: ${{ vars.BUILD_PATH }}
67-
allowDirtyBuild: true
59+
run: |
60+
docker rmi $(docker images -q)
61+
docker pull unityci/editor:ubuntu-2022.3.10f1-webgl-3.1.0
62+
docker run --rm \
63+
-v $GITHUB_WORKSPACE:/workspace \
64+
-e UNITY_LICENSE=$UNITY_LICENSE \
65+
-e UNITY_EMAIL=$UNITY_EMAIL \
66+
-e UNITY_PASSWORD=$UNITY_PASSWORD \
67+
-e UNITY_SERIAL=$UNITY_SERIAL \
68+
-e UNITY_VERSION=2022.3.10f1 \
69+
-e BUILD_PATH=$BUILD_PATH \
70+
-e BUILD_NAME=WebGL \
71+
-e BUILD_TARGET=WebGL \
72+
unityci/editor:ubuntu-2022.3.10f1-webgl-3.1.0 /bin/bash -c "/workspace/entrypoint.sh"
73+
6874

6975
# Step 5: Upload Build Artifact
7076
- name: Upload Build Artifact

0 commit comments

Comments
 (0)