Some checks failed
Unity-ALF-The-End-Real / activation (push) Successful in 1m2s
Proxmox-Runner-Test / hello-job (push) Successful in 5s
Unity-Cross-Platform-Build / Build for StandaloneOSX (push) Failing after 5m16s
Unity-Cross-Platform-Build / Build for StandaloneWindows64 (push) Failing after 14m58s
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: Unity-Cross-Platform-Build
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build for ${{ matrix.targetPlatform }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
targetPlatform:
|
|
- StandaloneWindows64 # 윈도우용
|
|
- StandaloneOSX # 맥용
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Cache Library folder
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: Library
|
|
key: Library-${{ matrix.targetPlatform }}
|
|
restore-keys: Library-
|
|
|
|
- name: Build Project
|
|
uses: game-ci/unity-builder@v4 # v3에서 v4로 올림 (유니티 6 대응)
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
with:
|
|
targetPlatform: ${{ matrix.targetPlatform }}
|
|
versioning: Semantic # 버전을 자동으로 계산하게 함 (Check)
|
|
buildName: MyGame-${{ matrix.targetPlatform }}
|
|
allowDirtyBuild: true # 버전 문자열에 이상한 게 섞여도 강행! (핵심)
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Build-${{ matrix.targetPlatform }}
|
|
path: build/${{ matrix.targetPlatform }} |