Update .gitea/workflows/build.yaml
Some checks failed
Unity-Cross-Platform-Build / Build for StandaloneOSX (push) Failing after 41s
Unity-Cross-Platform-Build / Build for StandaloneWindows64 (push) Failing after 39s

This commit is contained in:
2026-04-02 01:26:06 +09:00
parent 60c320d0c1
commit ff4e932646

View File

@@ -15,19 +15,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Project
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
versioning: Semantic
buildName: MyGame-${{ matrix.targetPlatform }}
allowDirtyBuild: true
# 컨테이너 격리를 쓰지 않고 서버 자원을 직접 쓰게 시도 (Check)
containerUser: "root"
- name: Build Project (The Last Strike)
run: |
# 1. 작업장 권한 강제 부여 (Check)
sudo chmod -R 777 .
# 2. 생 도커로 빌드 (파일 경로 꼬임 원천 차단) (Check)
docker run --rm \
-v $(pwd):/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 \
/bin/bash -c "unity-editor -batchmode -quit -projectPath /project -buildTarget StandaloneWindows64 -buildWindows64Player /project/build/StandaloneWindows64/MyGame.exe"
- name: Upload Artifact
uses: actions/upload-artifact@v4