mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: Actions 😎
|
|
|
|
on:
|
|
pull_request: {}
|
|
push: { branches: [master] }
|
|
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
PROJECT_PATH: test-project
|
|
|
|
jobs:
|
|
buildForAllPlatforms:
|
|
name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
unityVersion:
|
|
- 2019.2.11f1
|
|
targetPlatform:
|
|
- WebGL
|
|
- StandaloneOSX
|
|
- StandaloneWindows
|
|
- StandaloneWindows64
|
|
- StandaloneLinux64
|
|
- PS4
|
|
- XboxOne
|
|
- Switch
|
|
- Android
|
|
- iOS
|
|
- tvOS
|
|
- Lumin
|
|
- BJM
|
|
- Stadia
|
|
- WSAPlayer
|
|
- Facebook
|
|
- NoTarget
|
|
|
|
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
|