Skip to content

Commit 335d063

Browse files
committed
fix: testing project generation.
1 parent 50d8c51 commit 335d063

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.github/workflows/generate-unity-project-files.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
workflow_dispatch:
8-
8+
99
jobs:
1010
setup-unity:
1111
runs-on: ubuntu-latest
@@ -14,26 +14,13 @@ jobs:
1414
- name: Checkout Repository
1515
uses: actions/checkout@v4
1616

17-
- name: Install FUSE for AppImage
18-
run: |
19-
sudo apt update
20-
sudo apt install -y libfuse2
21-
22-
- name: Download and Install Unity Hub
23-
run: |
24-
wget https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage -O UnityHub.AppImage
25-
chmod +x UnityHub.AppImage
26-
sudo mv UnityHub.AppImage /usr/local/bin/unity-hub
27-
28-
- name: Install Unity via Unity Hub CLI
29-
run: |
30-
unity-hub --no-sandbox --headless install
31-
unity-hub --no-sandbox -- --headless install --version 2022.3.15f1
32-
33-
- name: Verify Unity Installation
34-
run: |
35-
/opt/unity/Editor/Unity --version
17+
- name: Install Unity Editor
18+
uses: game-ci/unity-setup@v2
19+
with:
20+
unityVersion: 2021.3.16f1
21+
allowDirtyBuild: true
22+
installLinuxIL2CPP: false
3623

3724
- name: Generate Solution and Project Files
3825
run: |
39-
/opt/unity/Editor/Unity -batchmode -logFile /dev/stdout -projectPath $GITHUB_WORKSPACE -quit
26+
/opt/unity/Editor/Unity -batchmode -logFile /dev/stdout -projectPath $GITHUB_WORKSPACE -quit

0 commit comments

Comments
 (0)