Generate Unity Solution #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate Unity Solution | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| setup-unity: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install FUSE for AppImage | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libfuse2 | |
| - 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 via Unity Hub CLI | |
| run: | | |
| unity-hub --no-sandbox --headless install | |
| unity-hub --no-sandbox -- --headless install --version 2022.3.15f1 | |
| - name: Verify Unity Installation | |
| run: | | |
| /opt/unity/Editor/Unity --version | |
| - name: Generate Solution and Project Files | |
| run: | | |
| /opt/unity/Editor/Unity -batchmode -logFile /dev/stdout -projectPath $GITHUB_WORKSPACE -quit |