Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
gunt3001 committed May 11, 2024
2 parents 6ad5c58 + 26dcdf0 commit c4118c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
architecture: [x86, x64]
self-contained: [true, false]

steps:
- name: Checkout code
Expand All @@ -26,12 +27,12 @@ jobs:

- name: Build project
run: |
dotnet publish HsrGraphicsTool/HsrGraphicsTool.csproj -c Release -r win-${{ matrix.architecture }} `--self-contained true /p:PublishSingleFile=true
dotnet publish HsrGraphicsTool/HsrGraphicsTool.csproj -c Release -r win-${{ matrix.architecture }} `--self-contained ${{ matrix.self-contained }}
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: HsrGraphicsTool-${{ matrix.architecture }}
name: HsrGraphicsTool-${{ matrix.architecture }}${{ matrix.self-contained == 'true' && '' || '-fd' }}
path: |
HsrGraphicsTool/bin/windows/Release/net8.0-windows/win-${{ matrix.architecture }}/publish/*
Expand All @@ -50,7 +51,9 @@ jobs:
- name: Rename executables by architecture
run: |
mv HsrGraphicsTool-x86/HsrGraphicsTool.exe HsrGraphicsTool_x86.exe && \
mv HsrGraphicsTool-x64/HsrGraphicsTool.exe HsrGraphicsTool_x64.exe
mv HsrGraphicsTool-x64/HsrGraphicsTool.exe HsrGraphicsTool_x64.exe && \
mv HsrGraphicsTool-x86-fd/HsrGraphicsTool.exe HsrGraphicsTool_x86_fd.exe && \
mv HsrGraphicsTool-x64-fd/HsrGraphicsTool.exe HsrGraphicsTool_x64_fd.exe
- name: Create Release
id: create_release
Expand All @@ -59,6 +62,11 @@ jobs:
with:
draft: false
prerelease: false
body: |
This is an automated release direct from source using GitHub Actions.
The '_fd' versions have smaller exe, but require the .NET 8 runtime to be installed.
files: |
HsrGraphicsTool_x86.exe
HsrGraphicsTool_x64.exe
HsrGraphicsTool_x64_fd.exe
HsrGraphicsTool_x86_fd.exe
4 changes: 3 additions & 1 deletion HsrGraphicsTool/HsrGraphicsTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<Version>1.1.0</Version>
<Version>1.1.7</Version>
<PublishSingleFile>true</PublishSingleFile>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit c4118c8

Please sign in to comment.