Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 78 additions & 17 deletions .github/workflows/development-buildandtestupmrelease.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and test UPM packages for platforms, all branches except main

on:
# pull_request:
# branches-ignore:
# - 'release'
pull_request:
branches-ignore:
- 'main'
# Ignore PRs targeting main

# Allows you to run this workflow manually from the Actions tab
Expand All @@ -13,18 +13,79 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

# Ensure default token scopes and inherit org-level secrets via env mapping
permissions:
contents: write
packages: read

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PAT: ${{ secrets.GIT_PAT }}

jobs:
# Check Unity version required by the package
# Run Unity build unit tests defined in the package for a single version for feature branches
Run-Partial-Unit-Tests:
name: Run Unity Unit Tests
if: github.ref != 'refs/heads/development'
uses: ./.github/workflows/rununitysinglebuild.yml
with:
unityversion: 2020.3

# Run Unity multi-version build unit tests defined in the package for the development branch
Run-Full-Unit-Tests:
name: Run Unity Unit Tests
if: github.ref == 'refs/heads/development'
uses: ./.github/workflows/rununitybuildmultiversion.yml
test-unity-build:
name: Test Unity UPM Build
runs-on: ${{ matrix.os }}
if: always()
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
unity-version:
- 2019
- 2020
- 2021
- 2022
- 6000.0.x
- 6000
include:
- os: ubuntu-latest
build-targets: StandaloneLinux64, Android
- os: windows-latest
build-targets: StandaloneWindows64
- os: macos-latest
build-targets: StandaloneOSX, iOS
steps:
- uses: buildalon/unity-setup@v2
id: unity-setup
with:
version-file: "None"
unity-version: ${{ matrix.unity-version }} # overrides version in version-file
build-targets: ${{ matrix.build-targets }}

- run: |
echo "Step Outputs:"
echo "steps.unity-setup.unity-hub-path: '${{ steps.unity-setup.outputs.unity-hub-path }}'"
echo "steps.unity-setup.unity-editors: '${{ steps.unity-setup.outputs.unity-editors }}'"
echo "steps.unity-setup.unity-editor-path: '${{ steps.unity-setup.outputs.unity-editor-path }}'"
echo "steps.unity-setup.unity-project-path: '${{ steps.unity-setup.outputs.unity-project-path }}'"

echo "Environment Variables:"
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 }}'"

- uses: buildalon/activate-unity-license@v2
if: runner.environment == 'github-hosted'
with:
license: "Personal" # Choose license type to use [ Personal, Professional, Floating ]
username: ${{ secrets.UNITY_USER}}
password: ${{ secrets.UNITY_ACC}}

- uses: buildalon/create-unity-project@v2
id: create-unity-project
with:
project-name: P

- name: Setup Unity UPM Build
uses: realitycollective/reality-collective-actions/setup-unity-upm-build@v1
with:
unity-project-path: ${{ steps.create-unity-project.outputs.project-path }}

- name: Run Unity Build
uses: realitycollective/reality-collective-actions/run-unity-multitarget-build@v1
with:
unity-editor-path: ${{ steps.unity-setup.outputs.unity-editor-path }}
unity-project-path: ${{ steps.create-unity-project.outputs.project-path }}
build-targets: ${{ matrix.build-targets }}
26 changes: 0 additions & 26 deletions .github/workflows/development-publish.yml

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/getpackageversionfrompackage.yml

This file was deleted.

91 changes: 0 additions & 91 deletions .github/workflows/main-publish.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/refreshbranch.yml

This file was deleted.

Loading