Skip to content

Commit 19c52f1

Browse files
committed
🪒 Publish log replay tool with trimming
1 parent 809a357 commit 19c52f1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎.github/workflows/build.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
run: dotnet test --no-build --verbosity normal
3535

3636
# Publish
37+
- name: Define MSBuild properties
38+
run: echo "MSBUILD_PROPS=-p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebuggerSupport=false -p:EnableUnsafeBinaryFormatterSerialization=false -p:EnableUnsafeUTF7Encoding=false -p:InvariantGlobalization=true" >> $GITHUB_ENV
39+
3740
- name: Publish framework-dependent
3841
run: |
3942
dotnet publish YoutubeDl.Wpf -c Release --no-restore
@@ -42,17 +45,17 @@ jobs:
4245
- name: Publish self-contained for Windows ARM64
4346
run: |
4447
dotnet publish YoutubeDl.Wpf -c Release -r win-arm64 --self-contained
45-
dotnet publish YoutubeDl.LogReplay -c Release -r win-arm64 --self-contained
48+
dotnet publish YoutubeDl.LogReplay -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
4649
4750
- name: Publish self-contained for Windows x64
4851
run: |
4952
dotnet publish YoutubeDl.Wpf -c Release -r win-x64 --self-contained
50-
dotnet publish YoutubeDl.LogReplay -c Release -r win-x64 --self-contained
53+
dotnet publish YoutubeDl.LogReplay -c Release $MSBUILD_PROPS -r win-x64 --self-contained
5154
5255
- name: Publish self-contained for Windows x86
5356
run: |
5457
dotnet publish YoutubeDl.Wpf -c Release -r win-x86 --self-contained
55-
dotnet publish YoutubeDl.LogReplay -c Release -r win-x86 --self-contained
58+
dotnet publish YoutubeDl.LogReplay -c Release $MSBUILD_PROPS -r win-x86 --self-contained
5659
5760
# Upload YoutubeDl.Wpf
5861
- name: Upload YoutubeDl.Wpf artifacts for Windows framework-dependent

0 commit comments

Comments
 (0)