From 68a757f0f62dc106b1cf763e82d0a8abed75d7c4 Mon Sep 17 00:00:00 2001 From: cooney Date: Wed, 1 Apr 2026 18:10:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=88=EB=8F=84=EC=9A=B0=20&=20=EB=A7=A5=20?= =?UTF-8?q?=ED=86=B5=ED=95=A9=20=EB=B9=8C=EB=93=9C=20=EC=9B=8C=ED=81=AC=20?= =?UTF-8?q?=ED=94=8C=EB=A1=9C=EC=9A=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..18f6a2f --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,40 @@ +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: Cache Library folder + uses: actions/cache@v3 + with: + path: Library + key: Library-${{ matrix.targetPlatform }} + restore-keys: Library- + + - name: Build Project + uses: game-ci/unity-builder@v3 + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + with: + targetPlatform: ${{ matrix.targetPlatform }} + # 빌드 결과물 경로 설정 + buildName: MyGame-${{ matrix.targetPlatform }} + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: Build-${{ matrix.targetPlatform }} + path: build/${{ matrix.targetPlatform }} \ No newline at end of file