Skip to content

Commit 2de2349

Browse files
committed
Update dotnet-desktop.yml
1 parent 3b6cf2d commit 2de2349

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,32 @@ jobs:
5454

5555
- name: Build (Windows)
5656
if: matrix.os == 'windows-latest'
57-
run: dotnet publish -c Release -r win-${{ env.Os }} --no-restore
57+
run: dotnet publish -c Release -r win-${{ env.Target }} --no-restore
5858
working-directory: ./ProcessorLatencyTool
5959
env:
60-
Os: ${{ matrix.os }}
60+
Target: ${{ matrix.target }}
6161

6262
- name: Build (macOS)
6363
if: matrix.os == 'macos-latest'
64-
run: dotnet publish -c Release -r osx-${{ env.Os }} --no-restore
64+
run: dotnet publish -c Release -r osx-${{ env.Target }} --no-restore
6565
working-directory: ./ProcessorLatencyTool
6666
env:
67-
Os: ${{ matrix.os }}
67+
Target: ${{ matrix.target }}
6868

6969
- name: Build (Linux)
7070
if: matrix.os == 'ubuntu-latest'
71-
run: dotnet publish -c Release -r linux-${{ env.Os }} --no-restore
71+
run: dotnet publish -c Release -r linux-${{ env.Target }} --no-restore
7272
working-directory: ./ProcessorLatencyTool
7373
env:
74-
Os: ${{ matrix.os }}
74+
Target: ${{ matrix.target }}
7575

7676
- name: Compress Build Files (Windows)
7777
if: matrix.os == 'windows-latest'
78-
run: Compress-Archive -Path publish -DestinationPath ${{ env.OS }}.zip
78+
run: Compress-Archive -Path publish -DestinationPath ${{ env.OS }}_${{ env.Target }}.zip
7979
working-directory: ./ProcessorLatencyTool/bin/Release/net9.0
8080
env:
8181
OS: ${{ matrix.os }}
82+
Target: ${{ matrix.target }}
8283

8384
- name: Compress Build Files (Unix)
8485
if: (matrix.os == 'macos-latest') || (matrix.os == 'ubuntu-latest')

0 commit comments

Comments
 (0)