Skip to content

Commit 849fc74

Browse files
committed
GitHubCI,Frontend.Console: swap .net6 with .net8
This is to fix this compiler error when building in Release mode: ``` Determining projects to restore... /usr/share/dotnet/sdk/10.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(32,5): error NETSDK1138: The target framework 'net6.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/home/runner/work/geewallet/geewallet/src/GWallet.Frontend.Console/GWallet.Frontend.Console.fsproj] ```
1 parent ab4d306 commit 849fc74

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,25 @@ on:
99
schedule:
1010
- cron: "0 0 * * *"
1111

12+
env:
13+
DOTNET_VERSION: '8.0.22'
1214

1315
# FIXME: figure out why we need to clean after make if we
1416
# want 'make strict' target to really happen without
1517
# assuming the binaries from previous build are good
1618
# (msbuild bug?)
1719

1820
jobs:
19-
macOS--dotnet6-and-mono:
21+
macOS--dotnet-and-mono:
2022
runs-on: macOS-13
2123
steps:
2224
- uses: actions/checkout@v1
2325
with:
2426
submodules: false
25-
- name: Setup .NET SDK 6.0.x
27+
- name: Setup .NET SDK
2628
uses: actions/[email protected]
2729
with:
28-
dotnet-version: '6.0.113'
30+
dotnet-version: ${{ env.DOTNET_VERSION }}
2931
- name: Install specific Xamarin.iOS and Xamarin.Android versions
3032
run: |
3133
wget https://download.visualstudio.microsoft.com/download/pr/81c41aaa-a3d7-4875-8416-d04b472379b7/21d9f6c5ad3a6bc2479b2ec4b0685b6c/xamarin.ios-16.0.0.72.pkg
@@ -94,16 +96,16 @@ jobs:
9496
- name: integration tests
9597
run: make update-servers
9698

97-
macOS--dotnet6-only:
99+
macOS--dotnet-only:
98100
runs-on: macOS-13
99101
steps:
100102
- uses: actions/checkout@v1
101103
with:
102104
submodules: false
103-
- name: Setup .NET SDK 6.0.x
105+
- name: Setup .NET SDK
104106
uses: actions/[email protected]
105107
with:
106-
dotnet-version: '6.0.113'
108+
dotnet-version: ${{ env.DOTNET_VERSION }}
107109
- name: HACK to emulate mono uninstall
108110
run: sudo rm -f `which mono` && sudo rm -f `which msbuild`
109111
- name: configure
@@ -121,16 +123,16 @@ jobs:
121123
- name: integration tests
122124
run: make update-servers
123125

124-
windows--dotnet6-and-legacyFramework:
126+
windows--dotnet-and-legacyFramework:
125127
runs-on: windows-latest
126128
steps:
127129
- uses: actions/checkout@v1
128130
with:
129131
submodules: false
130-
- name: Setup .NET SDK 6.0.x
132+
- name: Setup .NET SDK
131133
uses: actions/[email protected]
132134
with:
133-
dotnet-version: '6.0.113'
135+
dotnet-version: ${{ env.DOTNET_VERSION }}
134136
- name: configure
135137
run: .\configure.bat
136138
- name: build in DEBUG mode
@@ -178,16 +180,16 @@ jobs:
178180
- name: integration tests
179181
run: .\make update-servers
180182

181-
windows--dotnet6-only:
183+
windows--dotnet-only:
182184
runs-on: windows-latest
183185
steps:
184186
- uses: actions/checkout@v1
185187
with:
186188
submodules: false
187-
- name: Setup .NET SDK 6.0.x
189+
- name: Setup .NET SDK
188190
uses: actions/[email protected]
189191
with:
190-
dotnet-version: '6.0.113'
192+
dotnet-version: ${{ env.DOTNET_VERSION }}
191193
- name: HACK to emulate legacy .NETFramework uninstall
192194
run: del $(& "${Env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -find MSBuild\\**\\Bin\\MSBuild.exe)
193195
- name: configure

src/GWallet.Frontend.Console/GWallet.Frontend.Console.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
77
<Compile Include="..\GWallet.Backend\Properties\CommonAssemblyInfo.fs">

0 commit comments

Comments
 (0)