# Added - Added LICENCE. - Added build workflow. - Added release workflow. - Added PackageTools. # Changed - Update Unity from 2020.3.1f1 to 2020.8.1f1.
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Build
|
|
|
|
on:
|
|
pull_request: {}
|
|
push: { branches: [main] }
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.targetPlatform }}
|
|
if: "((github.event_name == 'push' && github.repository_owner == 'mackysoft') || startsWith(github.event.pull_request.head.label, 'mackysoft:'))"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
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.
|
|
|
|
steps:
|
|
# Checkout
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
lfs: true
|
|
|
|
# Cache
|
|
- name: Cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: Library
|
|
key: Library-${{ matrix.targetPlatform }}
|
|
restore-keys: Library-
|
|
|
|
# Build
|
|
- name: Build
|
|
uses: game-ci/unity-builder@v2
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE_2020 }}
|
|
with:
|
|
targetPlatform: ${{ matrix.targetPlatform }} |