Bringing over puck tier2 and3 changes #1119
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: Test & Build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - audio-main | |
| - audio-main-preliminary-merge1 | |
| permissions: write-all | |
| jobs: | |
| test: | |
| name: Test the project | |
| runs-on: windows-latest | |
| steps: | |
| # Checkout | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| # Cache | |
| - uses: actions/cache@v3 | |
| with: | |
| path: GGK/Library | |
| key: GGK/Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
| restore-keys: | | |
| GGK/Library- | |
| # Test | |
| - name: Run tests | |
| uses: game-ci/unity-test-runner@v4 | |
| env: | |
| UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| with: | |
| projectPath: GGK | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| build-Windows: | |
| name: Build the project for Windows | |
| # needs: test | |
| runs-on: windows-latest | |
| steps: | |
| # Checkout | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| # Cache | |
| - uses: actions/cache@v3 | |
| with: | |
| path: GGK/Library | |
| key: GGK/Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
| restore-keys: | | |
| GGK/Library- | |
| # Build | |
| - name: Build project | |
| uses: game-ci/unity-builder@v4 | |
| env: | |
| UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| with: | |
| allowDirtyBuild: true | |
| projectPath: GGK/ | |
| targetPlatform: StandaloneWindows | |
| buildName: GGK | |
| # Output | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: GGKWindows | |
| path: build | |
| build-macOS: | |
| name: Build the project for macOS | |
| # needs: test | |
| runs-on: macos-latest | |
| steps: | |
| # Checkout | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| # Cache | |
| - uses: actions/cache@v3 | |
| with: | |
| path: GGK/Library | |
| key: GGK/Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
| restore-keys: | | |
| GGK/Library- | |
| # Build | |
| - name: Build project | |
| uses: game-ci/unity-builder@v4 | |
| env: | |
| UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| with: | |
| allowDirtyBuild: true | |
| projectPath: GGK/ | |
| targetPlatform: StandaloneOSX | |
| buildName: GGK | |
| # Output | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: GGKmacOS | |
| path: build |