Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Aug 11, 2024
1 parent 37254ce commit 101d32c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: validate
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
push:
branches:
- 'main'
Expand All @@ -20,7 +22,7 @@ jobs:
UNITY_PROJECT_PATH: '' # set from unity-setup step
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 2
max-parallel: 3
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
Expand Down
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Buildalon Unity Action

[![Discord](https://img.shields.io/discord/939721153688264824.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/VM9cWJ9rjH)
[![Discord](https://img.shields.io/discord/939721153688264824.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/VM9cWJ9rjH) [![validate](https://github.com/buildalon/unity-action/actions/workflows/validate.yml/badge.svg?branch=main&event=push)](https://github.com/buildalon/unity-action/actions/workflows/validate.yml)

A Github Action to execute Unity Editor command line arguments.

Expand All @@ -9,7 +9,28 @@ A Github Action to execute Unity Editor command line arguments.
### Workflow

```yaml

jobs:
build:
env:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
build-target: StandaloneLinux64
- os: windows-latest
build-target: StandaloneWindows64
- os: macos-13
build-target: StandaloneOSX
steps:
- uses: buildalon/unity-action@v1
name: '${{ matrix.build-target }}-Build'
with:
editor-path: 'path/to/your/unity/editor/installation'
project-path: 'path/to/your/unity/project'
log-name: '${{ matrix.build-target }}-Build'
build-target: '${{ matrix.build-target }}'
args: '-quit -nographics -batchmode'
```
### Inputs
Expand Down

0 comments on commit 101d32c

Please sign in to comment.