File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "isRoot" : true ,
44 "tools" : {
55 "fsdocs-tool" : {
6- "version" : " 17 .0.0" ,
6+ "version" : " 19 .0.0" ,
77 "commands" : [
88 " fsdocs"
99 ]
Original file line number Diff line number Diff line change 55 branches :
66 - ' **'
77
8+ env :
9+ FSHARP_DIR : fsharp
10+
811jobs :
912 build :
1013
1114 strategy :
1215 matrix :
13- os : [windows -latest]
16+ os : [ubuntu -latest]
1417 dotnet : [6.0.400]
1518 runs-on : ${{ matrix.os }}
1619
1720 steps :
18- - uses : actions/checkout@v3
19- - name : Setup .NET
21+ - uses : actions/checkout@v3
22+ - name : Checkout fsharp main
23+ uses : actions/checkout@v3
24+ with :
25+ repository : dotnet/fsharp
26+ path : ${{ env.FSHARP_DIR }}
27+ ref : main
28+ - name : Setup .NET for FSharp
2029 uses : actions/setup-dotnet@v3
2130 with :
22- dotnet-version : 7.0.100
31+ global-json-file : ${{ env.FSHARP_DIR }}/global.json
2332 - name : Restore tools
2433 run : dotnet tool restore
25- - name : Restore projects
26- run : dotnet restore FSharp.Compiler.Service\FSharp.Compiler.Service.fsproj
27- - name : Checkout fsharp master
28- run : git clone https://github.com/dotnet/fsharp --depth 1 fsharp -b main
29- - name : Build fsharp master (turn of CI build status)
30- run : cd fsharp && eng\CIBuild.cmd -noVisualStudio
34+
35+ - name : Build FCS
36+ run : dotnet build src/Compiler/FSharp.Compiler.Service.fsproj /p:BUILDING_USING_DOTNET=true
37+ working-directory : ${{ env.FSHARP_DIR }}
38+
3139 - name : Run fsdocs
40+ env :
41+ # allow roll forward to latest major version - this would happen for us if we invoked the fsdocs tool instead of invoking the binary directly
42+ DOTNET_ROLL_FORWARD : " LatestMajor"
43+ # need previews because .NET 8 is what's being used at runtime
44+ DOTNET_ROLL_FORWARD_TO_PRERELEASE : " 1"
3245 run : dotnet fsdocs build --sourcefolder fsharp --input fsharp/docs
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ FSharp.Formatting/
99.fsdocs /
1010FSharp.Compiler.Service /obj /
1111tmp /
12-
12+ output /
You can’t perform that action at this time.
0 commit comments