Reimport config JSON when apply LDtkProject file #177
Workflow file for this run
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: Unity Builder | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| targetPlatform: | |
| - StandaloneWindows | |
| #- WebGL | |
| unityVersion: # All are LTS except minimum supported version | |
| - 2019.3.15f1 | |
| - 2019.4.40f1 | |
| - 2020.3.48f1 | |
| - 2021.3.45f1 | |
| - 2022.3.43f1 | |
| - 6000.0.64f1 | |
| - 6000.3.2f1 | |
| include: | |
| - targetPlatform: WebGL | |
| unityVersion: 2019.3.15f1 | |
| - targetPlatform: WebGL | |
| unityVersion: 6000.0.23f1 | |
| steps: | |
| #Build Checkout | |
| - uses: actions/checkout@v4.1.4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| #Use a custom packages list instead of the original manifest | |
| - name: Use CI Manifest | |
| run: | | |
| cp Packages/manifest_ci.json Packages/manifest.json | |
| git update-index --assume-unchanged Packages/manifest.json | |
| #Build Cache | |
| - uses: actions/cache@v4.2.3 | |
| with: | |
| path: Library | |
| # This ensures a clean Library if manifest_ci.json is changed | |
| key: Library-${{ matrix.unityVersion }}-${{ hashFiles('Packages/manifest.json') }} | |
| restore-keys: | | |
| Library-${{ matrix.unityVersion }}- | |
| #Build | |
| - uses: game-ci/unity-builder@v4.3.0 | |
| env: | |
| UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| with: | |
| targetPlatform: ${{ matrix.targetPlatform }} | |
| unityVersion: ${{ matrix.unityVersion }} | |
| customParameters: '-nographics' | |
| #Build Artifact | |
| - uses: actions/upload-artifact@v4.3.3 | |
| with: | |
| name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }} | |
| path: build/${{ matrix.targetPlatform }} |