Updating for ARFoundation 6 support #15
Workflow file for this run
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: Build and test UPM packages for platforms, all branches except main | |
on: | |
pull_request: | |
branches-ignore: | |
- 'main' | |
# Ignore PRs targeting main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# Check Unity version required by the package | |
validate-environment: | |
name: Get Unity Version from UPM package | |
uses: realitycollective/reusableworkflows/.github/workflows/getunityversionfrompackage.yml@v2 | |
with: | |
build-host: ubuntu-latest | |
# Check Unity Hub and Editor Environment | |
Validate-Unity: | |
name: Validate Unity Install | |
needs: validate-environment | |
uses: realitycollective/reusableworkflows/.github/workflows/validateunityinstall.yml@v2 | |
with: | |
build-target: windows | |
unityversion: ${{ needs.validate-environment.outputs.unityversion }} | |
# Run Unity unit tests defined in the package | |
Run-Unit-Tests: | |
name: Run Unity Unit Tests | |
needs: Validate-Unity | |
uses: realitycollective/reusableworkflows/.github/workflows/rununityUPMbuild.yml@v2 | |
with: | |
unityversion: ${{ needs.Validate-Unity.outputs.unityeditorversion }} | |
dependencies: '[{"development": "github.com/realitycollective/com.realitycollective.buildtools.git"},{"development": "github.com/realitycollective/com.realitytoolkit.spatial-persistence.git"},{"development": "github.com/realitycollective/com.realitytoolkit.core.git"},{"development": "github.com/realitycollective/com.realitycollective.utilities.git"},{"development": "github.com/realitycollective/com.realitytoolkit.service-framework.git"}]' | |
secrets: inherit | |
Build-Complete: | |
runs-on: ubuntu-latest | |
name: Build completion task | |
needs: Run-Unit-Tests | |
steps: | |
- run: echo "Build Complete" |