unity-builder/.github/workflows/main.yml

49 lines
1.2 KiB
YAML

name: Actions 😎
on:
pull_request: {}
push: { branches: [master] }
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
PROJECT_PATH: test-project
jobs:
strategy:
matrix:
unityVersion:
- 2019.2.11f1
targetPlatform:
- WebGL
# - StandaloneOSX
# - StandaloneWindows
# - StandaloneWindows64
# - StandaloneLinux64
# - PS4
# - XboxOne
# - Switch
- Android
- iOS
# - tvOS
# - Lumin
# - BJM
# - WSAPlayer
buildForAllPlatforms:
name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: webbertakken/unity-activate@v1
- uses: ./ # webbertakken/unity-builder@v0.3-webgl
with:
projectPath: test-project
targetPlatform: ${{ matrix.targetPlatform }}
unityVersion: ${{ matrix.unityVersion }}
- uses: webbertakken/unity-return-license@v1
if: always()
- uses: actions/upload-artifact@v1
with:
name: Build
path: build