Skip to content

Commit ca41c0d

Browse files
authored
Updates for .net 7 (#193)
* Updates for .net 7 * Fixing CI for 7 * inline because of fable design changes * set yml to 2 space indent * Update global.json * Remove old dotnet versions * Update global.json * Run tests on 6/7, remove 5
1 parent 31784fa commit ca41c0d

File tree

24 files changed

+206
-521
lines changed

24 files changed

+206
-521
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "6.2.1",
6+
"version": "7.2.0-alpha001",
77
"commands": [
88
"paket"
99
]
1010
},
1111
"fable": {
12-
"version": "3.7.1",
12+
"version": "4.0.0-theta-015",
1313
"commands": [
1414
"fable"
1515
]

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ indent_size = 4
1414
trim_trailing_whitespace = true
1515
end_of_line = lf
1616

17+
[*.yml]
18+
indent_size = 2
19+
1720
[*.{fs,fsi,fsx,config}]
1821
# https://fsprojects.github.io/fantomas/docs/end-users/Configuration.html
1922
charset = utf-8

.github/workflows/build.yml

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,23 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111

1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Use .NET Core 2.1 SDK
15-
uses: actions/setup-dotnet@v1
13+
- uses: actions/checkout@v3
14+
- name: Setup necessary dotnet SDKs
15+
uses: actions/setup-dotnet@v3
1616
with:
17-
dotnet-version: '2.1.x'
18-
- name: Use .NET Core 3.1 SDK
19-
uses: actions/setup-dotnet@v1
20-
with:
21-
dotnet-version: '3.1.x'
22-
- name: Use .NET Core 5.x SDK
23-
uses: actions/setup-dotnet@v1
24-
with:
25-
dotnet-version: '5.0.x'
26-
# Not specifying a version will attempt to install via global.json
27-
- name: Use .NET Core global.json
28-
uses: actions/setup-dotnet@v1
29-
30-
- name: Build
17+
global-json-file: global.json
18+
dotnet-version: |
19+
6.x
20+
21+
- name: Build via Bash
3122
if: runner.os != 'Windows'
3223
run: |
33-
chmod +x ./build.sh
34-
./build.sh RunFableTests
24+
chmod +x ./build.sh
25+
./build.sh
3526
env:
36-
# Work around https://github.com/actions/setup-dotnet/issues/29
37-
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
3827
CI: true
39-
- name: Build
28+
- name: Build via Windows
4029
if: runner.os == 'Windows'
41-
run: ./build.cmd RunFableTests
30+
run: ./build.cmd
4231
env:
43-
# Work around https://github.com/actions/setup-dotnet/issues/29
44-
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
45-
CI: true
32+
CI: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ GitHub Actions |
3939
#### Requirements
4040

4141
* [.NET Core SDK](https://www.microsoft.com/net/download/)
42-
* [v5.x](https://dotnet.microsoft.com/en-us/download/dotnet/5.0)
4342
* [v6.x](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
43+
* [v7.x](https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
4444
* [Node](https://nodejs.org/en/)
4545
* v16.0.0 or LTS
4646
* Not required but recommend that you use [NVM](https://github.com/nvm-sh/nvm) to easily manage multiple versions of Node

benchmarks/benchmarks.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<LangVersion>preview</LangVersion>
77
</PropertyGroup>
@@ -30,4 +30,4 @@
3030
<ProjectReference Include="..\src\FsToolkit.ErrorHandling.JobResult\FsToolkit.ErrorHandling.JobResult.fsproj" />
3131
</ItemGroup>
3232
<Import Project="..\.paket\Paket.Restore.targets" />
33-
</Project>
33+
</Project>

global.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"sdk": {
3-
"version": "6.0.401",
4-
"rollForward": "minor"
2+
"sdk": {
3+
"version": "7.0.100-rc.2.22477.23"
4+
}
55
}
6-
}

paket.dependencies

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source https://api.nuget.org/v3/index.json
22

33

44
storage: none
5-
framework: netstandard2.0, netstandard2.1, net5.0
5+
framework: netstandard2.0, netstandard2.1, net6.0, net7.0
66
nuget FSharp.Core 4.7.2
77
nuget Hopac
88
nuget FSharp.Control.AsyncSeq 3.2.1
@@ -12,7 +12,8 @@ nuget Expecto
1212
nuget Expecto.Hopac
1313
nuget Microsoft.NET.Test.Sdk
1414
nuget YoloDev.Expecto.TestSdk
15-
nuget Fable.Mocha 2.10.0
15+
nuget Fable.Mocha
16+
nuget Fable.Core >= 4.0.0-theta-006
1617

1718

1819
group NetStandard2
@@ -25,30 +26,33 @@ nuget Expecto
2526
nuget Expecto.Hopac
2627
nuget Microsoft.NET.Test.Sdk
2728
nuget YoloDev.Expecto.TestSdk
28-
nuget Fable.Mocha 2.12.0
29-
framework: netstandard2.0, net5.0
29+
nuget Fable.Mocha
30+
nuget Fable.Core >= 4.0.0-theta-006
31+
framework: netstandard2.0, net6.0
3032
storage: none
3133
condition: netstandard2_0
3234

3335

3436
group NetStandard2_1
3537
source https://api.nuget.org/v3/index.json
36-
nuget FSharp.Core 6.0.3
38+
nuget FSharp.Core >= 7.0.0
3739
nuget Hopac
3840
nuget FSharp.Control.AsyncSeq
3941
nuget Expecto
4042
nuget Expecto.Hopac
4143
nuget Microsoft.NET.Test.Sdk
4244
nuget YoloDev.Expecto.TestSdk
43-
nuget Fable.Mocha 2.12.0
44-
nuget IcedTasks
45+
nuget Fable.Mocha
46+
nuget Fable.Core >= 4.0.0-theta-006
47+
nuget IcedTasks >= 0.3.0
48+
framework: netstandard2.1, net7.0
4549
storage: none
46-
condition: netstandard2_1
50+
condition: netstandard2_1, net7.0
4751

4852
group Benchmarks
4953
source https://api.nuget.org/v3/index.json
5054
storage: none
51-
nuget FSharp.Core ~> 6
55+
nuget FSharp.Core ~> 7
5256
nuget BenchmarkDotNet 0.13.1
5357
nuget BenchmarkDotNet.Annotations 0.13.1
5458
nuget BenchmarkDotNet.Diagnostics.Windows 0.13.1
@@ -58,7 +62,7 @@ nuget BenchmarkDotNet.Diagnostics.Windows 0.13.1
5862
group Build
5963
source https://api.nuget.org/v3/index.json
6064
storage: none
61-
nuget FSharp.Core
65+
nuget FSharp.Core
6266
nuget Fake.Core.Target 5.22.0
6367
nuget Fake.DotNet.Cli 5.22.0
6468
nuget Fake.Core.ReleaseNotes 5.22.0
@@ -70,4 +74,4 @@ group Build
7074
nuget Fake.Api.GitHub 5.22.0
7175
nuget Fake.BuildServer.GitHubActions 5.22.0
7276
nuget MSBuild.StructuredLogger
73-
nuget Octokit
77+
nuget Octokit

0 commit comments

Comments
 (0)