Skip to content

Commit 4698c82

Browse files
authored
Merge pull request fsprojects#135 from beauvankirk/master
Restore netstandard2.0 compatibility, update build environment, clean old files/lines
2 parents 8064abd + aee89fb commit 4698c82

19 files changed

Lines changed: 398 additions & 550 deletions

.config/dotnet-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"isRoot": true,
44
"tools": {
55
"fsharp.formatting.commandtool": {
6-
"version": "11.0.2",
6+
"version": "11.1.0",
77
"commands": [
88
"fsdocs"
99
]
1010
},
1111
"paket": {
12-
"version": "5.247.4",
12+
"version": "6.0.0-rc001",
1313
"commands": [
1414
"paket"
1515
]
1616
},
1717
"fake-cli": {
18-
"version": "5.20.2",
18+
"version": "5.20.4",
1919
"commands": [
2020
"fake"
2121
]

.github/workflows/publish.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
11
name: Build and Publish Docs
2-
32
on:
43
push:
54
branches: [ master ]
6-
75
jobs:
86
build:
9-
107
runs-on: ubuntu-latest
11-
128
steps:
139
- uses: actions/checkout@v2
14-
- name: Setup .NET Core
10+
- name: Setup .NET
1511
uses: actions/setup-dotnet@v1
1612
with:
17-
dotnet-version: 3.1.301
13+
dotnet-version: '3.1.x'
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v1
16+
with:
17+
dotnet-version: '5.0.202'
1818
- name: Install tools
1919
run: dotnet tool restore
20-
- name: Install dependencies
21-
run: dotnet restore
22-
- name: Build
23-
run: dotnet build --configuration Release --no-restore
24-
- name: Test
25-
run: dotnet test --no-restore --verbosity normal
26-
- name: Run fsdocs
27-
run: dotnet fsdocs build --properties Configuration=Release
20+
- name: Build and Test and Docs using FAKE
21+
run: dotnet fake build
2822
- name: Deploy
2923
uses: peaceiris/actions-gh-pages@v3
3024
with:

.github/workflows/pull-request.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@ on:
66

77
jobs:
88
build:
9-
109
runs-on: ubuntu-latest
11-
1210
steps:
1311
- uses: actions/checkout@v2
14-
- name: Setup .NET Core
12+
- name: Setup .NET
13+
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: '3.1.x'
16+
- name: Setup .NET
1517
uses: actions/setup-dotnet@v1
1618
with:
17-
dotnet-version: 3.1.301
19+
dotnet-version: '5.0.202'
1820
- name: Install tools
1921
run: dotnet tool restore
20-
- name: Install dependencies
21-
run: dotnet restore
22-
- name: Build
23-
run: dotnet build --configuration Release --no-restore
24-
- name: Test
25-
run: dotnet test --no-restore --verbosity normal
22+
- name: Build Test and Docs using FAKE
23+
run: dotnet fake build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ $RECYCLE.BIN/
169169
# NuGet Packages Directory
170170
packages/
171171

172+
# Paket files
173+
.paket/load/
174+
172175
# Generated documentation folder
173176
docs/output/
174177

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 3.0.4
2+
* Restore netstandard2.0 (and thereby .NET Framework 4.6.1+) compatibility
3+
* Update build env versions to current recommendations
4+
* Adjust to ensure all tests pass and eliminate warnings in vscode (ionide) and visual studio
5+
16
### 3.0.2
27

38
* Include .fsi files into Fable package path [#118](https://github.com/fsprojects/FSharp.Control.AsyncSeq/pull/118)

build.fsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ let summary = "Asynchronous sequences for F#"
3939

4040
let license = "Apache 2.0 License"
4141

42-
let buildDir = "bin"
43-
4442
// Git configuration (used for publishing documentation in gh-pages branch)
4543
// The profile where the project is posted
4644
let projectRepo = "https://github.com/fsprojects/FSharp.Control.AsyncSeq"
@@ -53,11 +51,20 @@ let artifactsDir = __SOURCE_DIRECTORY__ @@ "artifacts"
5351
// Read additional information from the release notes document
5452
let release = ReleaseNotes.load "RELEASE_NOTES.md"
5553

54+
55+
let versionPropsTemplate = $"\
56+
<Project>
57+
<PropertyGroup>
58+
<Version>%s{release.NugetVersion}</Version>
59+
</PropertyGroup>
60+
</Project>"
61+
5662
// --------------------------------------------------------------------------------------
5763
// Clean build results
5864

5965
Target.create "Clean" (fun _ ->
60-
Shell.cleanDirs ["bin"; "temp"]
66+
DotNet.exec id "clean" "" |> ignore
67+
Shell.cleanDirs ["artifacts"; "temp"]
6168
)
6269

6370
// Generate assembly info files with the right version & up-to-date information
@@ -73,7 +80,6 @@ Target.create "AssemblyInfo" (fun _ ->
7380

7481
AssemblyInfoFile.createFSharp "src/Common/AssemblyInfo.fs" info
7582
AssemblyInfoFile.createCSharp "src/Common/AssemblyInfo.cs" info
76-
let releaseNotes = String.toLines release.Notes |> System.Net.WebUtility.HtmlEncode
7783
File.WriteAllText("version.props", sprintf """<Project>
7884
<PropertyGroup>
7985
<Version>%s</Version>
@@ -107,6 +113,8 @@ Target.create "RunTests" (fun _ ->
107113
// Build a NuGet package
108114

109115
Target.create "NuGet" (fun _ ->
116+
117+
File.WriteAllText("version.props",versionPropsTemplate)
110118
DotNet.pack (fun pack ->
111119
{ pack with
112120
OutputPath = Some artifactsDir
@@ -119,7 +127,7 @@ Target.create "NuGet" (fun _ ->
119127

120128
Target.create "GenerateDocs" (fun _ ->
121129
Shell.cleanDir ".fsdocs"
122-
DotNet.exec id "fsdocs" "build --clean" |> ignore
130+
DotNet.exec id "fsdocs" "build --clean --properties Configuration=Release" |> ignore
123131
)
124132

125133
// --------------------------------------------------------------------------------------
@@ -157,10 +165,14 @@ Target.create "All" ignore
157165
"Clean"
158166
==> "Build"
159167
==> "RunTests"
160-
==> "All"
161168
==> "NuGet"
162-
==> "PublishNuget"
163169
==> "GenerateDocs"
170+
==> "All"
171+
172+
"NuGet" ==> "PublishNuget"
173+
"GenerateDocs" ==> "ReleaseDocs"
174+
175+
"PublishNuget"
164176
==> "ReleaseDocs"
165177
==> "Release"
166178

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "3.1.202",
3+
"version": "5.0.202",
44
"rollForward": "minor"
55
}
66
}

paket.dependencies

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1+
version 6.0.0-rc001
12
source https://api.nuget.org/v3/index.json
2-
framework: netstandard2.1
3+
framework: netstandard2.1, netstandard2.0
34
redirects: on
45
storage: none
56

6-
nuget FSharp.Core >= 4.3.2 lowest_matching: true
7+
nuget FSharp.Core >= 4.3.2 lowest_matching: true
8+
nuget Microsoft.Bcl.AsyncInterfaces ~> 5.0.0 framework: netstandard2.0
79

810
group Test
911
source https://api.nuget.org/v3/index.json
10-
framework: netcoreapp3.0
12+
framework: netcoreapp3.1, net5.0
1113
storage: none
1214

15+
generate_load_scripts: true
16+
1317
nuget FSharp.Core
1418
nuget Microsoft.NET.Test.Sdk
1519
nuget NUnit
16-
nuget NUnit.Runners
1720
nuget NUnit3TestAdapter
1821

1922
group Test.Fable
@@ -30,12 +33,12 @@ group Fake
3033
source https://api.nuget.org/v3/index.json
3134
storage: none
3235

33-
nuget Fake.Core.Target ~> 5.20.0
34-
nuget Fake.Core.ReleaseNotes ~> 5.20.0
35-
nuget Fake.DotNet.AssemblyInfoFile ~> 5.20.0
36-
nuget Fake.DotNet.Cli ~> 5.20.0
37-
nuget Fake.DotNet.Testing.NUnit ~> 5.20.0
38-
nuget Fake.DotNet.NuGet ~> 5.20.0
39-
nuget Fake.DotNet.MsBuild ~> 5.20.0
40-
nuget Fake.Tools.Git ~> 5.20.0
41-
nuget Fake.DotNet.Paket ~> 5.20.0
36+
nuget Fake.Core.Target ~> 5.20.4
37+
nuget Fake.Core.ReleaseNotes ~> 5.20.4
38+
nuget Fake.DotNet.AssemblyInfoFile ~> 5.20.4
39+
nuget Fake.DotNet.Cli ~> 5.20.4
40+
nuget Fake.DotNet.Testing.NUnit ~> 5.20.4
41+
nuget Fake.DotNet.NuGet ~> 5.20.4
42+
nuget Fake.DotNet.MsBuild ~> 5.20.4
43+
nuget Fake.Tools.Git ~> 5.20.4
44+
nuget Fake.DotNet.Paket ~> 5.20.4

0 commit comments

Comments
 (0)