Skip to content

Commit

Permalink
Update to FCS 38 (currently nightly releases) (#468)
Browse files Browse the repository at this point in the history
* code changes necessary for fcs 38

* bump to net5.0 to fix deep bug in FCS

* add some logging to the tests to figure out the new issue

* bump github actions SDK versions

* add 3.1 sdk to the build environments for dotnet-tools

* use FCS 38 stable now

* revert the async/sync changes in FCS 38 that were not part of the SDK drop

* change build script to allow specifying arguments

* add release note

* tweak build script to make prerelease versions for unreleased changes

* correct the version bump logic to account for SemVerInfos interesting normalization

* Make use of keepAssemblyContents

* Don't use sdk refs outside of framework

Co-authored-by: Matt Mcveigh <[email protected]>
  • Loading branch information
baronfel and Matt Mcveigh authored Nov 13, 2020
1 parent bb4ef41 commit a715c31
Show file tree
Hide file tree
Showing 36 changed files with 271 additions and 283 deletions.
6 changes: 3 additions & 3 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"isRoot": true,
"tools": {
"fake-cli": {
"version": "5.19.1",
"version": "5.20.4-alpha.1642",
"commands": [
"fake"
]
},
"paket": {
"version": "5.243.0",
"version": "5.252.0",
"commands": [
"paket"
]
Expand All @@ -27,4 +27,4 @@
]
}
}
}
}
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Core 3.1
name: .NET 5.0

on: [push, pull_request]

Expand All @@ -8,12 +8,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
dotnet: [3.1.200]
dotnet: [5.0.100]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
- name: Setup .Net Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ jobs:
strategy:
matrix:
os: [windows-latest]
dotnet: [3.1.200]
dotnet: [5.0.100]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
- name: Setup .Net Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.200
dotnet-version: '3.1.x'
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Restore tools
run: dotnet tool restore
- name: Restore dependencies
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ jobs:
strategy:
matrix:
os: [windows-latest]
dotnet: [3.1.200]
dotnet: [5.0.100]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
- name: Setup .Net Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Update to FCS 38
- Update to .Net 5

## [0.16.5] - 2020-06-26
- Update navigation in docs.
Expand Down
26 changes: 17 additions & 9 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ open Fake.IO.Globbing.Operators
open Fake.Core.TargetOperators
open Fake.Api

Target.initEnvironment()

// --------------------------------------------------------------------------------------
// Information about the project to be used at NuGet and in AssemblyInfo files
// --------------------------------------------------------------------------------------
Expand All @@ -37,14 +39,20 @@ let nugetDir = "./out/"
System.Environment.CurrentDirectory <- __SOURCE_DIRECTORY__
let changelogFilename = "CHANGELOG.md"
let changelog = Changelog.load changelogFilename
let latestEntry = changelog.LatestEntry

let nugetVersion = latestEntry.NuGetVersion
let packageReleaseNotes = sprintf "%s/blob/v%s/CHANGELOG.md" gitUrl latestEntry.NuGetVersion
let releaseNotes =
latestEntry.Changes
|> List.map (fun c -> " * " + c.ToString())
|> String.concat "\n"
let nugetVersion =
match changelog.Unreleased with
| None ->
changelog.LatestEntry.NuGetVersion
| Some _unreleased ->
let current = changelog.LatestEntry.NuGetVersion |> SemVer.parse
let bumped = { current with
Minor = current.Minor + 1u
Patch = 0u
Original = None
PreRelease = PreRelease.TryParse "alpha01" }
string bumped

let packageReleaseNotes = sprintf "%s/blob/v%s/CHANGELOG.md" gitUrl nugetVersion

// --------------------------------------------------------------------------------------
// Helpers
Expand Down Expand Up @@ -149,4 +157,4 @@ Target.create "Release" DoNothing
==> "Push"
==> "Release"

Target.runOrDefault "Default"
Target.runOrDefaultWithArguments "Default"
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "3.1.200"
"version": "5.0.100"
}
}
9 changes: 5 additions & 4 deletions paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
source https://api.nuget.org/v3/index.json
framework: netstandard2.0, netcoreapp3.1, netcoreapp2.1

framework: netstandard2.0, net5.0
storage: none

nuget Argu
nuget BenchmarkDotNet
nuget BenchmarkDotNet.Diagnostics.Windows
nuget FParsec
nuget FSharp.Compiler.Service ~> 36.0
nuget FSharp.Compiler.Service ~> 38.0
nuget Dotnet.ProjInfo.Workspace ~> 0.41.0
nuget Dotnet.ProjInfo.Workspace.FCS ~> 0.41.0
nuget FSharp.Core ~> 4.6.2
nuget FSharp.Core
nuget nunit
nuget NUnit3TestAdapter
nuget Microsoft.NET.Test.Sdk
nuget Newtonsoft.Json

nuget Microsoft.Build.Utilities.Core 16.7

group Docs
source https://api.nuget.org/v3/index.json
Expand Down
Loading

0 comments on commit a715c31

Please sign in to comment.