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 }}