diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0cf48b..3cf60d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -127,13 +127,34 @@ jobs: buildForWebGL: name: Build for StandaloneWindows64 🗗 runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + projectPath: + - test-project + unityVersion: + - 2019.2.11f1 + targetPlatform: + - StandaloneOSX # Build a macOS standalone (Intel 64-bit). + - StandaloneWindows64 # Build a Windows 64-bit standalone. + - StandaloneLinux64 # Build a Linux 64-bit standalone. + - iOS # Build an iOS player. + - WebGL # WebGL. + steps: - uses: actions/checkout@v1 - - uses: webbertakken/unity-builder@v0.8 + - uses: actions/cache@v1.1.0 with: - projectPath: test-project - unityVersion: 2019.2.11f1 - targetPlatform: StandaloneWindows64 + path: ${{ matrix.projectPath }}/Library + key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} + restore-keys: | + Library-${{ matrix.projectPath }}- + Library- + - uses: webbertakken/unity-builder@v0.9 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} - uses: actions/upload-artifact@v1 with: name: Build