Skip to content

Commit

Permalink
fix: testing project generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhazen committed Feb 6, 2025
1 parent 3b6eacb commit 268da8e
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/generate-unity-project-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,28 @@ on:
workflow_dispatch:

jobs:
generate-solution:
setup-unity:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
- name: Checkout Repository
uses: actions/checkout@v4

- name: Cache Library Folder
uses: actions/cache@v3
with:
path: Library
key: Library-${{ runner.os }}-${{ github.sha }}
restore-keys: |
Library-${{ runner.os }}-
- name: Download and Install Unity Hub
run: |
wget https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage -O UnityHub.AppImage
chmod +x UnityHub.AppImage
sudo mv UnityHub.AppImage /usr/local/bin/unity-hub
- name: Install Unity
uses: game-ci/unity-activate@v2
with:
unityVersion: 2022.3.10f1 # Set your Unity version
personalLicense: ${{ secrets.UNITY_LICENSE }}
- name: Install Unity via Unity Hub CLI
run: |
unity-hub --headless install
unity-hub -- --headless install --version 2021.3.16f1
- name: Generate Solution Files
- name: Verify Unity Installation
run: |
unity-editor -batchmode -quit -nographics -logFile -executeMethod UnityEditor.SyncVS.SyncSolution
/opt/unity/Editor/Unity --version
- name: Upload Solution Files
uses: actions/upload-artifact@v4
with:
name: UnitySolution
path: "*.sln"
- name: Generate Solution and Project Files
run: |
/opt/unity/Editor/Unity -batchmode -logFile /dev/stdout -projectPath $GITHUB_WORKSPACE -quit

0 comments on commit 268da8e

Please sign in to comment.