Files
ScreenCapture/.gitea/workflows/build.yaml
cooney 055b37b8a2
Some checks failed
Unity-Cross-Platform-Build / Build for StandaloneOSX (push) Failing after 48s
Unity-Cross-Platform-Build / Build for StandaloneWindows64 (push) Failing after 41s
Update .gitea/workflows/build.yaml
2026-04-02 01:37:18 +09:00

40 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: Build Project (The Last Strike)
run: |
# 1. 경로 변환 방지 (Check)
export MSYS_NO_PATHCONV=1
# 2. 작업장 권한 강제 부여 (Check)
sudo chmod -R 777 .
# 3. 도커 내부의 기본 작업 디렉토리를 /project로 고정 (Check)
docker run --rm \
-v "$(pwd):/project" \
-w /project \
-e UNITY_LICENSE="${{ secrets.UNITY_LICENSE }}" \
-e UNITY_EMAIL="${{ secrets.UNITY_EMAIL }}" \
-e UNITY_PASSWORD="${{ secrets.UNITY_PASSWORD }}" \
unityci/editor:ubuntu-6000.2.15f1-windows-mono-3 \
unity-editor -batchmode -quit -projectPath . -buildTarget StandaloneWindows64
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}