40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Unity Multi-Platform Build
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-all:
|
|
runs-on: ubuntu-latest # 민구님의 Proxmox 네이티브 러너
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
|
|
# 1. 맥 빌드 실행
|
|
- name: Build for macOS
|
|
run: |
|
|
xvfb-run --auto-servernum ~/Unity/Hub/Editor/6000.2.15f1/Editor/Unity \
|
|
-batchmode \
|
|
-nographics \
|
|
-projectPath . \
|
|
-executeMethod BuildScript.BuildMac \
|
|
-quit \
|
|
-logFile mac_build.log
|
|
|
|
# 2. 윈도우 빌드 실행
|
|
- name: Build for Windows
|
|
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. 결과물 업로드 (Gitea 웹에서 다운로드 가능)
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Game-Builds
|
|
path: Builds/ |