Skip to content

Commit ec66ae8

Browse files
committed
2 parents 0c84f11 + 630348f commit ec66ae8

1 file changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,37 @@ jobs:
2626
run: dotnet build --no-restore
2727
- name: Test
2828
run: dotnet test --no-build --verbosity normal
29-
- name: Build for release
30-
run: dotnet publish --no-restore
29+
30+
# Build for release
31+
- name: Build for release x86.NET with DepotDownloader Embedded
32+
run: dotnet publish -r win-x86 -c Release /p:PublishSingleFile=true /p:SelfContained=true /p:EnableCompressionInSingleFile=true /p:IncludeDepotDownloader=true
33+
- uses: actions/upload-artifact@v4
34+
with:
35+
name: Dropship.x86.Embedded.exe
36+
path: bin/Release/net8.0/win-x86/publish/Dropship.exe
37+
- name: Build for release x64.NET with DepotDownloader Embedded
38+
run: dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:SelfContained=true /p:EnableCompressionInSingleFile=true /p:IncludeDepotDownloader=true
39+
- uses: actions/upload-artifact@v4
40+
with:
41+
name: Dropship.x64.Embedded.exe
42+
path: bin/Release/net8.0/win-x64/publish/Dropship.exe
43+
# Remove build files
44+
- name: Remove x86 build files
45+
run: |
46+
rm -rf Dropship/bin/Release/net8.0/win-x86/publish
47+
- name: Remove x64 build files
48+
run: |
49+
rm -rf Dropship/bin/Release/net8.0/win-x64/publish
50+
51+
- name: Build for release x86.NET
52+
run: dotnet publish -r win-x86 -c Release /p:PublishSingleFile=true /p:SelfContained=true /p:EnableCompressionInSingleFile=true /p:IncludeDepotDownloader=false
53+
- uses: actions/upload-artifact@v4
54+
with:
55+
name: Dropship.x86.exe
56+
path: bin/Release/net8.0/win-x86/publish/Dropship.exe
57+
- name: Build for release x64.NET with DepotDownloader Embedded
58+
run: dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:SelfContained=true /p:EnableCompressionInSingleFile=true /p:IncludeDepotDownloader=false
59+
- uses: actions/upload-artifact@v4
60+
with:
61+
name: Dropship.x64.exe
62+
path: bin/Release/net8.0/win-x64/publish/Dropship.exe

0 commit comments

Comments
 (0)