File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,25 +2,35 @@ name: Build UnityDataTool
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ environment :
7+ description : ' Build environment'
8+ default : ' release'
9+ required : true
10+ options :
11+ - debug
12+ - release
513 push :
614 branches :
715 - main
816
17+ env :
18+ environment : ${{ inputs.environment || 'release' }}
19+
920jobs :
1021 build :
11- runs-on : ${{ matrix.os }}-latest
12-
1322 strategy :
1423 matrix :
1524 os : [windows, macos]
1625 arch : [x64, arm64]
17- environment : [debug, release]
1826 exclude :
1927 - os : windows
2028 arch : arm64
2129 - os : macos
2230 arch : x64
2331
32+ runs-on : ${{ matrix.os }}-latest
33+
2434 steps :
2535 - name : Checkout repository
2636 uses : actions/checkout@v4
@@ -30,17 +40,17 @@ jobs:
3040 with :
3141 dotnet-version : 9.0.x
3242
33- - name : Publish UnityDataTool (${{ matrix.os }}-${{ matrix.arch }}-${{ matrix .environment }})
43+ - name : Publish UnityDataTool (${{ matrix.os }}-${{ matrix.arch }}-${{ env .environment }})
3444 run : >
3545 dotnet publish UnityDataTool
36- -c ${{ matrix .environment }}
46+ -c ${{ env .environment }}
3747 -a ${{ matrix.arch }}
3848 -p:PublishSingleFile=true
3949 -p:UseAppHost=true
40- -o publish/${{ matrix.os }}/${{ matrix.arch }}-${{ matrix .environment }}
50+ -o publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env .environment }}
4151
4252 - name : Upload artifact
4353 uses : actions/upload-artifact@v4
4454 with :
45- name : UnityDataTool-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix .environment }}
46- path : publish/${{ matrix.os }}/${{ matrix.arch }}-${{ matrix .environment }}
55+ name : UnityDataTool-${{ matrix.os }}-${{ matrix.arch }}-${{ env .environment }}
56+ path : publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env .environment }}
You can’t perform that action at this time.
0 commit comments