Skip to content

Clean and optimize assets #21

Clean and optimize assets

Clean and optimize assets #21

name: BuildAllPlatforms
on:
workflow_dispatch:
pull_request:
branches: [main]
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
jobs:
buildForAllSupportedPlatforms:
name: Build for ${{ 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.
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
lfs: true
- name: Cleanup before build
run: |
docker system prune -af
docker volume prune -f
- name: Import SDK
run: |
python importSDK.py
- name: Cache Library
uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: Library-
- name: Build Test
uses: game-ci/unity-builder@v4
with:
buildMethod: Inworld.Playground.PlaygroundExporter.BuildPlaygroundScene
unityVersion: 6000.0.25f1
targetPlatform: ${{ matrix.targetPlatform }}