Skip to content

Commit f1d38bf

Browse files
committed
Merge branch 'main' into ps3-patch
2 parents a6a95b1 + 77a19db commit f1d38bf

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ on:
1010

1111
jobs:
1212
build:
13-
name: Build, Test, and Upload Builds
14-
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ ubuntu-latest, windows-latest ]
17+
name: Build, Test, and Upload Builds (${{ matrix.os }})
18+
runs-on: ${{ matrix.os }}
1519
steps:
1620
- uses: actions/checkout@v3
1721
- name: Setup .NET
@@ -21,25 +25,32 @@ jobs:
2125

2226
- name: Set VERSION variable from tag (for tag pushes)
2327
if: ${{ contains(github.ref, 'refs/tags') }}
28+
shell: bash
2429
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
2530

2631
- name: Set VERSION variable from tag (for normal commits)
32+
shell: bash
2733
if: ${{ !contains(github.ref, 'refs/tags') }}
2834
run: echo "VERSION=0.0.0" >> $GITHUB_ENV
2935

3036
- name: Print VERSION variable for debugging
37+
shell: bash
3138
run: echo "$VERSION"
3239

3340
- name: Restore
3441
run: dotnet restore
3542

3643
- name: Publish for Linux x64
44+
if: matrix.os == 'ubuntu-latest'
3745
run: dotnet publish -c Release -r linux-x64 --self-contained Refresher /p:Version=${VERSION}
3846

3947
- name: Publish for Windows x64
40-
run: dotnet publish -c Release -r win-x64 --self-contained Refresher /p:Version=${VERSION}
48+
if: matrix.os == 'windows-latest'
49+
shell: bash
50+
run: dotnet publish -c Release -r win-x64 --self-contained Refresher //p:Version=${VERSION}
4151

4252
- name: Upload Linux x64 build
53+
if: matrix.os == 'ubuntu-latest'
4354
uses: actions/[email protected]
4455
with:
4556
name: "Refresher for Linux x64"
@@ -48,9 +59,10 @@ jobs:
4859
retention-days: 30
4960

5061
- name: Upload Windows x64 build
62+
if: matrix.os == 'windows-latest'
5163
uses: actions/[email protected]
5264
with:
5365
name: "Refresher for Windows x64"
54-
path: "Refresher/bin/Release/net7.0/win-x64/publish/"
66+
path: "Refresher/bin/Release/net7.0-windows/win-x64/publish/"
5567
if-no-files-found: error
5668
retention-days: 30

Refresher/Refresher.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<TargetFramework Condition="!$([MSBuild]::IsOSPlatform('Windows'))">net7.0</TargetFramework>
88
<TargetFramework Condition="$([MSBuild]::IsOSPlatform('Windows'))">net7.0-windows</TargetFramework>
99
<ApplicationIcon>Resources\refresher.ico</ApplicationIcon>
10+
<BuiltInComInteropSupport Condition="'$(TargetFramework)' == 'net7.0-windows'">true</BuiltInComInteropSupport>
1011
</PropertyGroup>
1112

1213
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
@@ -18,7 +19,7 @@
1819
<PackageReference Include="ELFSharp" Version="2.17.2" />
1920
<PackageReference Include="Eto.Forms" Version="2.7.5" />
2021
<PackageReference Include="Eto.Platform.Gtk" Version="2.7.5" />
21-
<PackageReference Condition="'$(TargetFramework)' == 'net7.0-windows'" Include="Eto.Platform.Windows" Version="2.7.5" />
22+
<PackageReference Condition="'$(TargetFramework)' == 'net7.0-windows'" Include="Eto.Platform.Wpf" Version="2.7.5" />
2223
<EmbeddedResource Include="Resources\refresher.ico" LogicalName="refresher.ico" />
2324
<PackageReference Include="FluentFTP" Version="47.1.0" />
2425
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

0 commit comments

Comments
 (0)