@@ -21,54 +21,54 @@ jobs:
2121 runs-on : ${{ matrix.os }}
2222 permissions :
2323 contents : read
24- env :
25- UNITY_PROJECT_PATH : ${{ github.workspace }}/Test Project
2624 steps :
27- - uses : actions/checkout@v4
28- - uses : buildalon/unity-setup@v1
25+ - name : Free Disk Space
26+ if : ${{ matrix.os == 'ubuntu-latest' && matrix.unity-version == '6000.2' }}
27+ uses : endersonmenezes/free-disk-space@713d134e243b926eba4a5cce0cf608bfd1efb89a # v2.1.1
28+ with :
29+ remove_android : true
30+ remove_dotnet : false
31+ remove_tool_cache : false
32+ - uses : actions/checkout@v5
33+ - uses : buildalon/unity-setup@main
2934 with :
3035 version-file : None
3136 build-targets : ${{ matrix.build-target }}
3237 unity-version : ${{ matrix.unity-version }}
33- - name : Get Unity Template
34- id : template
35- shell : bash
36- run : ./.github/workflows/scripts/get-unity-template.sh 'com.unity.template.3d(-cross-platform)?'
37- - uses : buildalon/activate-unity-license@v1
38+ - uses : buildalon/activate-unity-license@main
3839 with :
3940 license : Personal
4041 username : ${{ secrets.UNITY_USERNAME }}
4142 password : ${{ secrets.UNITY_PASSWORD }}
42- - uses : ./ # buildalon/unity-action
43- name : Create Test Project
43+ - uses : buildalon/create- unity-project@main
44+ id : unity-project
4445 with :
45- log-name : create-test-project
46- args : ' -quit -nographics -batchmode -createProject "${{ env.UNITY_PROJECT_PATH }}" -cloneFromTemplate "${{ steps.template.outputs.TEMPLATE_PATH }}"'
46+ project-name : Test Project
4747 - name : Add Build Pipeline Package
4848 run : |
4949 npm install -g openupm-cli
50- openupm add com.virtualmaker.buildalon
51- working-directory : ${{ env.UNITY_PROJECT_PATH }}
50+ openupm add com.utilities.buildpipeline
51+ working-directory : ${{ steps.unity-project.outputs.project-path }}
5252 shell : bash
5353 - uses : ./ # buildalon/unity-action
5454 name : ${{ matrix.build-target }}-Validate
5555 with :
5656 build-target : ${{ matrix.build-target }}
57- project-path : ${{ env.UNITY_PROJECT_PATH }}
57+ project-path : ${{ steps.unity-project.outputs.project-path }}
5858 log-name : ${{ matrix.build-target }}-Validate
59- args : ' -quit -nographics -batchmode -executeMethod Buildalon .Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset'
60- - uses : ./ # buildalon/unity-action
59+ args : -quit -nographics -batchmode -executeMethod Utilities .Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset
60+ - uses : ./ # buildalon/unity-action
6161 name : ${{ matrix.build-target }}-Build
6262 with :
6363 build-target : ${{ matrix.build-target }}
64- project-path : ${{ env.UNITY_PROJECT_PATH }}
64+ project-path : ${{ steps.unity-project.outputs.project-path }}
6565 log-name : ${{ matrix.build-target }}-Build
66- args : ' -quit -nographics -batchmode -executeMethod Buildalon .Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity'
66+ args : -quit -nographics -batchmode -executeMethod Utilities .Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity ${{ matrix.build-args }}
6767 - uses : actions/upload-artifact@v4
6868 name : Upload Artifacts
6969 if : always()
7070 with :
71- name : ${{ github.run_number }}.${{ github.run_attempt }} ${{ matrix.unity-version }} ${{ matrix.name }} Artifacts
71+ name : ${{ github.run_number }}.${{ github.run_attempt }} ${{ matrix.os }} ${{ matrix. unity-version }} ${{ matrix.build-target }} Artifacts
7272 path : |
7373 ${{ github.workspace }}/**/*.log
7474 ${{ github.workspace }}/**/Builds/${{ matrix.build-target }}/
0 commit comments