Files
ScreenCapture/.gitea/workflows/build.yaml
Workflow config file is invalid. Please check your config file: yaml: line 17: did not find expected key

36 lines
1.1 KiB
YAML

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
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: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}