Merge pull request #2 from mackysoft/mackysoft-patch-1 #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: ${{ matrix.targetPlatform }} | |
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_2021 }} | |
with: | |
targetPlatform: ${{ matrix.targetPlatform }} | |
unityVersion: 2021.3.24f1 | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Build-${{ matrix.targetPlatform }} | |
path: build/${{ matrix.targetPlatform }} |