validate #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: validate | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Run every Sunday at midnight | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- '*' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
validate: | |
env: | |
UNITY_EDITORS: '' # set by the unity-setup action | |
UNITY_HUB_PATH: '' # set by the unity-setup action | |
UNITY_EDITOR_PATH: '' # set by the unity-setup action | |
UNITY_PROJECT_PATH: '' # set by the unity-setup action | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-13, macos-latest] | |
unity-versions: | |
- None | |
- 2019.4.40f1 (ffc62b691db5) | |
- 2020.x | |
- 2021.3.x | |
- 2022.3 | |
- 6000 | |
include: | |
- os: ubuntu-latest | |
build-targets: StandaloneLinux64, Android, iOS | |
modules: linux-server | |
- os: windows-latest | |
build-targets: StandaloneWindows64, Android, WSAPlayer | |
modules: windows-server | |
- os: macos-13 | |
build-targets: StandaloneOSX, Android, iOS | |
modules: mac-server | |
- os: macos-latest | |
build-targets: StandaloneOSX Android iOS VisionOS | |
modules: mac-server | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ # buildalon/unity-setup | |
with: | |
version-file: 'None' | |
unity-version: ${{ matrix.unity-versions }} | |
build-targets: ${{ matrix.build-targets }} | |
modules: ${{ matrix.modules }} | |
- run: | | |
echo "UNITY_HUB_PATH: '${{ env.UNITY_HUB_PATH }}'" | |
echo "UNITY_EDITORS: '${{ env.UNITY_EDITORS }}'" | |
echo "UNITY_EDITOR_PATH: '${{ env.UNITY_EDITOR_PATH }}'" | |
echo "UNITY_PROJECT_PATH: '${{ env.UNITY_PROJECT_PATH }}'" |