-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1006 Bytes
/
build-unity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Unity Build [Windows64]
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build Unity Project
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Unity
run: |
sudo apt-get update
sudo apt-get install -y lib32gcc-s1 lib32stdc++6
wget https://download.unity3d.com/download_unity/eff2de9070d8/LinuxEditorInstaller/Unity-2022.3.14f1.tar.xz
mkdir -p Unity
tar -xf Unity.tar.xz -C Unity
sudo mv Unity /opt/
- name: Run Unity Build
run: |
/opt/Unity/Editor/Unity \
-batchmode \
-nographics \
-quit \
-projectPath . \
-buildTarget StandaloneWindows64 \
-buildOutput build/PacoMonkeyBuild.exe
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: PacoMonkey-Build
path: build/