Skip to content

Commit bbf0e86

Browse files
UNITY_EDITOR_PATH
1 parent 95225ab commit bbf0e86

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/unity-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
permissions:
2323
contents: read
2424
timeout-minutes: 30
25+
env:
26+
UNITY_PROJECT_PATH: '' # Set from create-project step
2527
steps:
2628
- uses: actions/checkout@v4
2729
- uses: actions/setup-node@v4
@@ -80,11 +82,11 @@ jobs:
8082
unity-cli run --unity-editor "${UNITY_EDITOR_PATH}" --unity-project "${UNITY_PROJECT_PATH}" --log-name Validate -quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset
8183
unity-cli run --unity-editor "${UNITY_EDITOR_PATH}" --unity-project "${UNITY_PROJECT_PATH}" --log-name Build -quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity
8284
- name: Uninstall editor
83-
if: always()
85+
if: ${{ always() && env.UNITY_EDITOR_PATH != '' }}
8486
shell: bash
8587
run: |
8688
unity-cli uninstall-unity --unity-editor "${UNITY_EDITOR_PATH}"
87-
- name: Post Run
89+
- name: Return license
8890
if: always()
8991
shell: bash
9092
run: |

0 commit comments

Comments
 (0)