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

This commit is contained in:
2026-04-02 01:41:52 +09:00
parent 055b37b8a2
commit a86ee77518

View File

@@ -15,23 +15,24 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Project (The Last Strike)
- name: Build Project (Physical Strike)
run: |
# 1. 경로 변환 방지 (Check)
# 1. 경로 변환 방지 및 권한 강제 오픈 (Check)
export MSYS_NO_PATHCONV=1
# 2. 작업장 권한 강제 부여 (Check)
sudo chmod -R 777 .
# 3. 도커 내부의 기본 작업 디렉토리를 /project로 고정 (Check)
# 2. 현재 러너가 코드를 받아놓은 '진짜 주소'를 변수로 잡습니다. (Check)
REAL_PATH=$(pwd)
# 3. 유니티 실행 (가상 경로 /project 대신 실제 주소를 직접 꽂습니다) (Check)
docker run --rm \
-v "$(pwd):/project" \
-w /project \
-v "$REAL_PATH:$REAL_PATH" \
-w "$REAL_PATH" \
-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
unity-editor -batchmode -quit -projectPath "$REAL_PATH" -buildTarget StandaloneWindows64
- name: Upload Artifact
uses: actions/upload-artifact@v4