diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9133b1..be2ed84 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,7 @@ on: permissions: actions: write + contents: write jobs: test: @@ -98,3 +99,32 @@ jobs: run: | echo "Artifacts Path: ${{ matrix.testMode }}-artifacts" echo "Coverage Path: ${{ steps.tests.outputs.coveragePath }}" + build: + name: Build Unity project + runs-on: ubuntu-latest + needs: test + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + lfs: true + + - name: Cache Library Folder + uses: actions/cache@v3 + with: + path: ./dist/Library + key: Library-MyProjectName-TargetPlatform + restore-keys: | + Library-MyProjectName- + Library- + + - name: Build Unity project + uses: game-ci/unity-builder@v4 + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + with: + projectPath: './dist/' + targetPlatform: StandaloneWindows64 +