11name : ' Unity Build (XRTK)'
22description : ' Runs a Build using the specified build targets'
33branding :
4- icon : ' '
5- color : ' '
4+ icon : ' box '
5+ color : ' blue '
66
77inputs :
88 build-target :
99 description : ' The build target to build for.'
1010 # Unity -buildTarget command line args https://docs.unity3d.com/Manual/CommandLineArguments.html
1111 # StandaloneWindows64, WSAPlayer, StandaloneOSX, iOS, StandaloneLinux64, Android, Lumin, WebGL
12- defaults : ' '
12+ default : ' '
1313 additional-valiate-args :
1414 description : ' Additional args to pass to validate command'
15- defaults : ' '
15+ default : ' '
1616 additional-test-args :
1717 description : ' Additional args to pass to test command'
18- defaults : ' '
18+ default : ' '
1919 additional-build-args :
2020 description : ' Additional args to pass to build command'
21- defaults : ' '
21+ default : ' '
2222
2323runs :
2424 using : " composite"
2525 steps :
2626 - id : unity-validate
2727 name : Unity Editor Validation
28- uses : xrtk/unity-validate@main
28+ uses : xrtk/unity-validate@v2
2929
30- - uses : xrtk/unity-action@main
30+ - uses : xrtk/unity-action@v2
3131 name : Project Validation
3232 with :
3333 name : ' project-validation'
34- editor-path : ' ${{ steps.unity-validate.outputs .editor-path }}'
35- project-path : ' ${{ steps.unity-validate.outputs .project-path }}'
34+ editor-path : ' ${{ env .editor-path }}'
35+ project-path : ' ${{ env .project-path }}'
3636 args : ' -quit -batchmode -executeMethod XRTK.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject ${{ inputs.additional-valiate-args }}'
3737
38- - uses : xrtk/unity-action@main
38+ - uses : xrtk/unity-action@v2
3939 name : ' ${{ inputs.build-target }}-Tests'
4040 with :
4141 name : ' ${{ inputs.build-target }}-Tests'
42- editor-path : ' ${{ steps.unity-validate.outputs .editor-path }}'
43- project-path : ' ${{ steps.unity-validate.outputs .project-path }}'
42+ editor-path : ' ${{ env .editor-path }}'
43+ project-path : ' ${{ env .project-path }}'
4444 build-target : ' ${{ inputs.build-target }}'
4545 args : ' -batchmode -runEditorTests ${{ inputs.additional-test-args }}'
4646
47- - uses : xrtk/unity-action@main
47+ - uses : xrtk/unity-action@v2
4848 name : ' ${{ inputs.build-target }}-Build'
4949 with :
5050 name : ' ${{ inputs.build-target }}-Build'
51- editor-path : ' ${{ steps.unity-validate.outputs .editor-path }}'
52- project-path : ' ${{ steps.unity-validate.outputs .project-path }}'
51+ editor-path : ' ${{ env .editor-path }}'
52+ project-path : ' ${{ env .project-path }}'
5353 build-target : ' ${{ inputs.build-target }}'
5454 args : ' -quit -batchmode -executeMethod XRTK.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild ${{ inputs.additional-build-args }}'
5555
5656 - name : Zip Artifacts
5757 if : always()
5858 run : |
59- $artifacts = "${{ steps.unity-validate.outputs .project-path }}/Builds"
59+ $artifacts = "${{ env .project-path }}/Builds"
6060
6161 if (Test-Path -Path $artifacts) {
6262 Compress-Archive -Path "$artifacts/*" -DestinationPath ${{ github.workspace }}/${{ runner.os }}-${{ inputs.build-target }}-Artifacts.zip -Force
6969 if : always()
7070 with :
7171 name : ' ${{ runner.os }}-${{ inputs.build-target }}-Artifacts'
72- path : ' ${{ github.workspace }}/${{ runner.os }}-${{ inputs.build-target }}-Artifacts.zip'
72+ path : ' ${{ github.workspace }}/${{ runner.os }}-${{ inputs.build-target }}-Artifacts.zip'
0 commit comments