From 101d32c25941cbbb4a1b5c17698f14e2d1da2e55 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Sun, 11 Aug 2024 17:45:10 -0400 Subject: [PATCH] . --- .github/workflows/validate.yml | 4 +++- README.md | 25 +++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 83d5c140..f8a00e95 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,5 +1,7 @@ name: validate on: + schedule: + - cron: '0 0 * * 0' # Every Sunday at midnight push: branches: - 'main' @@ -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] diff --git a/README.md b/README.md index fa0f7755..bc8890fc 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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