Upgrade builder and implement caching

This commit is contained in:
Webber
2020-01-29 01:45:33 +01:00
committed by Webber Takken
parent 12e8e190a6
commit 281d1d3559

View File

@@ -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