test unity build CI

This commit is contained in:
2024-09-28 14:51:24 -05:00
parent c2440d8671
commit 0b690b7619
2 changed files with 39 additions and 0 deletions

38
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Build Unity Project
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
unityVersion: [2022.3.46f1]
targetPlatform: [WebGL]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Unity Project
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
unityVersion: auto
targetPlatform: ${{ matrix.targetPlatform }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Build
path: build

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
# Repository
.idea/**
/Galagan/.idea/**
*.zip
# This .gitignore file should be placed at the root of your Unity project directory
#