Skip to content

Commit

Permalink
update to dotnet v6 and use FAKE as a lib only
Browse files Browse the repository at this point in the history
  • Loading branch information
et1975 committed Sep 14, 2023
1 parent 57b7fe8 commit 80d3218
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 251 deletions.
6 changes: 0 additions & 6 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 2,6 @@
"version": 1,
"isRoot": true,
"tools": {
"fake-cli": {
"version": "5.23.1",
"commands": [
"fake"
]
},
"fable": {
"version": "3.7.20",
"commands": [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 16,8 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x
- name: Restore tools
run: dotnet tool restore
- name: Build
run: dotnet fake build
run: ./build.fsx
24 changes: 12 additions & 12 deletions build.fsx
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,16 1,10 @@
#r "paket:
nuget FSharp.Core 6
nuget Microsoft.Build 17.3.2
nuget Microsoft.Build.Framework 17.3.2
nuget Microsoft.Build.Tasks.Core 17.3.2
nuget Microsoft.Build.Utilities.Core 17.3.2
#!/usr/bin/env -S dotnet fsi
#r "nuget: Fake.IO.FileSystem"
#r "nuget: Fake.DotNet.Cli"
#r "nuget: Fake.JavaScript.Yarn"
#r "nuget: Fake.Core.Target"
#r "nuget: Fake.Tools.Git"

nuget Fake.IO.FileSystem
nuget Fake.DotNet.Cli
nuget Fake.JavaScript.Yarn
nuget Fake.Core.Target
nuget Fake.Tools.Git //"
#load ".fake/build.fsx/intellisense.fsx"
open Fake.Core
open Fake.DotNet
open Fake.IO
Expand All @@ -29,6 23,12 @@ let gitHome = sprintf "https://github.com/%s" gitOwner
let projects =
!! "src/**.fsproj"

System.Environment.GetCommandLineArgs()
|> Array.skip 2 // fsi.exe; build.fsx
|> Array.toList
|> Context.FakeExecutionContext.Create false __SOURCE_FILE__
|> Context.RuntimeContext.Fake
|> Context.setExecutionContext

Target.create "Clean" (fun _ ->
Shell.cleanDir "build"
Expand Down
231 changes: 0 additions & 231 deletions build.fsx.lock

This file was deleted.

0 comments on commit 80d3218

Please sign in to comment.