Skip to content

Commit 690ddaf

Browse files
committed
fix: testing project generation.
1 parent 335d063 commit 690ddaf

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

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

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,31 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
setup-unity:
10+
generate-solution:
1111
runs-on: ubuntu-latest
12-
1312
steps:
14-
- name: Checkout Repository
13+
- name: Checkout repository
1514
uses: actions/checkout@v4
1615

17-
- name: Install Unity Editor
18-
uses: game-ci/unity-setup@v2
16+
- name: Cache Library Folder
17+
uses: actions/cache@v3
1918
with:
20-
unityVersion: 2021.3.16f1
21-
allowDirtyBuild: true
22-
installLinuxIL2CPP: false
19+
path: Library
20+
key: Library-${{ runner.os }}-${{ github.sha }}
21+
restore-keys: |
22+
Library-${{ runner.os }}-
2323
24-
- name: Generate Solution and Project Files
25-
run: |
26-
/opt/unity/Editor/Unity -batchmode -logFile /dev/stdout -projectPath $GITHUB_WORKSPACE -quit
24+
- name: Build project
25+
uses: game-ci/unity-builder@v4
26+
env:
27+
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
28+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
29+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
30+
with:
31+
buildMethod: UnityEditor.SyncVS.SyncSolution
32+
33+
- name: Upload Solution Files
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: UnitySolution
37+
path: "*.sln"

0 commit comments

Comments
 (0)