1+ name : BuildSyncTool
2+
3+ on : [push]
4+
5+ jobs :
6+ Build_win-x86 :
7+
8+ runs-on : windows-latest
9+
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Setup .NET
13+ uses : actions/setup-dotnet@v1
14+ with :
15+ dotnet-version : 8.0.x
16+
17+ - name : Build with dotnet
18+ run : dotnet publish --configuration Release -r win-x86 /p:PublishSingleFile=true --self-contained true SyncTool/SyncTool.csproj
19+
20+ - uses : actions/upload-artifact@v4
21+ with :
22+ name : SyncTool_win-x86
23+ path : SyncTool/bin/Release/net8.0/win-x86/publish
24+
25+ Build_win-x64 :
26+
27+ runs-on : windows-latest
28+
29+ steps :
30+ - uses : actions/checkout@v2
31+ - name : Setup .NET
32+ uses : actions/setup-dotnet@v1
33+ with :
34+ dotnet-version : 8.0.x
35+
36+ - name : Build with dotnet
37+ run : dotnet publish --configuration Release -r win-x64 /p:PublishSingleFile=true --self-contained true SyncTool/SyncTool.csproj
38+
39+ - uses : actions/upload-artifact@v4
40+ with :
41+ name : SyncTool_win-x64
42+ path : SyncTool/bin/Release/net8.0/win-x64/publish
43+
44+ Build_linux-x64 :
45+ runs-on : ubuntu-latest
46+ steps :
47+ - uses : actions/checkout@v2
48+ - name : Setup .NET
49+ uses : actions/setup-dotnet@v1
50+ with :
51+ dotnet-version : 8.0.x
52+
53+ - name : Build with dotnet
54+ run : dotnet publish --configuration Release -r linux-x64 /p:PublishSingleFile=true --self-contained true SyncTool/SyncTool.csproj
55+
56+ - uses : actions/upload-artifact@v4
57+ with :
58+ name : SyncTool_linux-x64
59+ path : SyncTool/bin/Release/net8.0/linux-x64/publish
60+
61+ Build_linux-arm64 :
62+
63+ runs-on : ubuntu-latest
64+ steps :
65+ - uses : actions/checkout@v2
66+ - name : Setup .NET
67+ uses : actions/setup-dotnet@v1
68+ with :
69+ dotnet-version : 8.0.x
70+
71+ - name : Build with dotnet
72+ run : dotnet publish --configuration Release -r linux-arm64 /p:PublishSingleFile=true --self-contained true SyncTool/SyncTool.csproj
73+
74+ - uses : actions/upload-artifact@v4
75+ with :
76+ name : SyncTool_linux-arm64
77+ path : SyncTool/bin/Release/net8.0/linux-arm64/publish
0 commit comments