mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
name: Actions 😎
|
|
|
|
on:
|
|
pull_request: {}
|
|
push: { branches: [master] }
|
|
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
|
|
|
|
jobs:
|
|
buildForAllPlatforms:
|
|
name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
projectPath:
|
|
- test-project
|
|
unityVersion:
|
|
- 2019.2.11f1
|
|
# - 2019.3.0f1 # requires different license file/method
|
|
targetPlatform:
|
|
- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
|
|
- StandaloneWindows # Build a Windows standalone.
|
|
- StandaloneWindows64 # Build a Windows 64-bit standalone.
|
|
- StandaloneLinux64 # Build a Linux 64-bit standalone.
|
|
- iOS # Build an iOS player.
|
|
# - Android # Build an Android .apk standalone app.
|
|
- WebGL # WebGL.
|
|
# - WSAPlayer # Build an Windows Store Apps player.
|
|
# - PS4 # Build a PS4 Standalone.
|
|
# - XboxOne # Build a Xbox One Standalone.
|
|
# - tvOS # Build to Apple's tvOS platform.
|
|
# - Switch # Build a Nintendo Switch player.
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: ./
|
|
with:
|
|
projectPath: ${{ matrix.projectPath }}
|
|
unityVersion: ${{ matrix.unityVersion }}
|
|
targetPlatform: ${{ matrix.targetPlatform }}
|
|
- uses: actions/upload-artifact@v1
|
|
with:
|
|
name: Build
|
|
path: build
|