Skip to content

Commit 3b6cf2d

Browse files
committed
update actions
1 parent a213735 commit 3b6cf2d

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/dotnet-desktop.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
strategy:
3939
matrix:
4040
os: [windows-latest, macos-latest, ubuntu-latest]
41+
target: [x64, arm64]
4142

4243
runs-on: ${{ matrix.os }}
4344

@@ -51,9 +52,26 @@ jobs:
5152
- name: Restore dependencies
5253
run: dotnet restore
5354

54-
- name: Build
55-
run: dotnet publish -c Release --no-restore
55+
- name: Build (Windows)
56+
if: matrix.os == 'windows-latest'
57+
run: dotnet publish -c Release -r win-${{ env.Os }} --no-restore
58+
working-directory: ./ProcessorLatencyTool
59+
env:
60+
Os: ${{ matrix.os }}
61+
62+
- name: Build (macOS)
63+
if: matrix.os == 'macos-latest'
64+
run: dotnet publish -c Release -r osx-${{ env.Os }} --no-restore
5665
working-directory: ./ProcessorLatencyTool
66+
env:
67+
Os: ${{ matrix.os }}
68+
69+
- name: Build (Linux)
70+
if: matrix.os == 'ubuntu-latest'
71+
run: dotnet publish -c Release -r linux-${{ env.Os }} --no-restore
72+
working-directory: ./ProcessorLatencyTool
73+
env:
74+
Os: ${{ matrix.os }}
5775

5876
- name: Compress Build Files (Windows)
5977
if: matrix.os == 'windows-latest'

ProcessorLatencyTool/ProcessorLatencyTool.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<ApplicationManifest>app.manifest</ApplicationManifest>
1010
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
1111
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
12+
<RuntimeIdentifiers>win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
1213
</PropertyGroup>
1314

1415
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">

0 commit comments

Comments
 (0)