Skip to content

Merge pull request #429 from Tuupertunut/master #62

Merge pull request #429 from Tuupertunut/master

Merge pull request #429 from Tuupertunut/master #62

name: Build Companion App
on:
push:
branches:
- master
workflow_dispatch: {}
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
PROJECT_PATH: UltraStar Play Companion
jobs:
build-job:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion:
- 2022.2.4f1
targetPlatform:
# - StandaloneWindows64
# - StandaloneLinux64
# - StandaloneOSX
# Skip Android build until "JDK not found" issue has been solved (https://github.com/game-ci/unity-builder/issues/489)
#- Android
- iOS
# - WebGL
steps:
# Clone repo and restore cache
- uses: actions/checkout@v2
with:
fetch-depth: 0
lfs: true
- uses: actions/cache@v2
with:
path: ${{ env.PROJECT_PATH }}/Library
key: Library-${{ env.PROJECT_PATH }}-${{ matrix.targetPlatform }}-${{ hashFiles(env.PROJECT_PATH) }}
restore-keys: |
Library-${{ env.PROJECT_PATH }}-${{ matrix.targetPlatform }}-
Library-${{ env.PROJECT_PATH }}-
Library-
# Run setup script
- name: Setup Script
working-directory: tools
run: sh setup.sh
# Build Executables.
- uses: game-ci/[email protected]
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
projectPath: ${{ env.PROJECT_PATH }}
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue'
allowDirtyBuild: true
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.targetPlatform }}-build
path: build/${{ matrix.targetPlatform }}