diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index f1fbc751..c8fd7574 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -40,7 +40,7 @@ jobs: with: name: Coverage results path: ${{ steps.passportTest.outputs.coveragePath }} - build: + ubuntu-build: name: Build for ${{ matrix.targetPlatform }} runs-on: ubuntu-latest-8-cores strategy: @@ -72,6 +72,40 @@ jobs: unityVersion: 2021.3.26f1 targetPlatform: ${{ matrix.targetPlatform }} projectPath: './sample' + - uses: actions/upload-artifact@v3 + with: + name: Build + path: build + windows-build: + name: Build for ${{ matrix.targetPlatform }} + runs-on: windows-2022 + strategy: + fail-fast: false + matrix: + targetPlatform: + - StandaloneWindows64 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + lfs: true + - uses: actions/cache@v3 + with: + path: Library + key: + Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} + restore-keys: | + Library-${{ matrix.targetPlatform }} + Library- + - uses: game-ci/unity-builder@v4 + env: + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} + with: + unityVersion: 2021.3.26f1 + targetPlatform: ${{ matrix.targetPlatform }} + projectPath: './sample' - uses: actions/upload-artifact@v3 with: name: Build