Update .gitea/workflows/build.yaml
All checks were successful
Final Unity Check / check (push) Successful in 6s
All checks were successful
Final Unity Check / check (push) Successful in 6s
This commit is contained in:
@@ -1,42 +1,40 @@
|
|||||||
name: Unity-Cross-Platform-Build
|
name: Unity Multi-Platform Build
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-all:
|
||||||
name: Build for ${{ matrix.targetPlatform }}
|
runs-on: ubuntu-latest # 민구님의 Proxmox 네이티브 러너
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
targetPlatform:
|
|
||||||
- StandaloneWindows64 # 윈도우용
|
|
||||||
- StandaloneOSX # 맥용
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
lfs: true
|
||||||
|
|
||||||
- name: Build Project (Recursive Search Strike)
|
# 1. 맥 빌드 실행
|
||||||
|
- name: Build for macOS
|
||||||
run: |
|
run: |
|
||||||
# 1. 경로 변환 방지 (Check)
|
xvfb-run --auto-servernum ~/Unity/Hub/Editor/6000.2.15f1/Editor/Unity \
|
||||||
export MSYS_NO_PATHCONV=1
|
-batchmode \
|
||||||
sudo chmod -R 777 .
|
-nographics \
|
||||||
|
-projectPath . \
|
||||||
|
-executeMethod BuildScript.BuildMac \
|
||||||
|
-quit \
|
||||||
|
-logFile mac_build.log
|
||||||
|
|
||||||
# 2. Assets 폴더가 있는 "진짜 프로젝트 경로"를 자동으로 찾아냅니다. (Check)
|
# 2. 윈도우 빌드 실행
|
||||||
TARGET_DIR=$(find $(pwd) -name "Assets" -type d -exec dirname {} \;)
|
- name: Build for Windows
|
||||||
echo "Found Assets at: $TARGET_DIR"
|
run: |
|
||||||
|
xvfb-run --auto-servernum ~/Unity/Hub/Editor/6000.2.15f1/Editor/Unity \
|
||||||
|
-batchmode \
|
||||||
|
-nographics \
|
||||||
|
-projectPath . \
|
||||||
|
-executeMethod BuildScript.BuildWindows \
|
||||||
|
-quit \
|
||||||
|
-logFile win_build.log
|
||||||
|
|
||||||
# 3. 그 진짜 주소로 유니티 빌드 시작! (Check)
|
# 3. 결과물 업로드 (Gitea 웹에서 다운로드 가능)
|
||||||
docker run --rm \
|
- name: Upload Artifacts
|
||||||
-v "$TARGET_DIR:$TARGET_DIR" \
|
|
||||||
-w "$TARGET_DIR" \
|
|
||||||
-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 "$TARGET_DIR" -buildTarget StandaloneWindows64
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Build-${{ matrix.targetPlatform }}
|
name: Game-Builds
|
||||||
path: build/${{ matrix.targetPlatform }}
|
path: Builds/
|
||||||
Reference in New Issue
Block a user