Skip to content

Commit 949ef2b

Browse files
authored
Merge pull request #91 from nojaf/fix-docs
Get required SDKs for both projects.
2 parents 6c65546 + e97fc82 commit 949ef2b

2 files changed

Lines changed: 26 additions & 22 deletions

File tree

.github/workflows/docs.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,20 @@ jobs:
2323

2424
steps:
2525
- uses: actions/checkout@v3
26-
- name: Setup .NET Core
27-
uses: actions/setup-dotnet@v3
28-
with:
29-
dotnet-version: |
30-
7.0.100
31-
7.0.202
32-
- name: Restore tools
33-
run: dotnet tool restore
34-
- name: Restore projects
35-
run: dotnet restore FSharp.Core\FSharp.Core.fsproj
3626
- name: Checkout fsharp main
3727
uses: actions/checkout@v3
3828
with:
3929
repository: dotnet/fsharp
4030
path: ${{ env.FSHARP_DIR }}
4131
ref: main
32+
- name: Setup .NET Core for FSharp
33+
uses: actions/setup-dotnet@v3
34+
with:
35+
global-json-file: ${{ env.FSHARP_DIR }}/global.json
36+
- name: Restore tools
37+
run: dotnet tool restore
38+
- name: Restore projects
39+
run: dotnet restore FSharp.Core\FSharp.Core.fsproj
4240
- name: Build FSharp.Core in fsharp main
4341
run: dotnet build .\src\FSharp.Core\ /p:BUILDING_USING_DOTNET=true
4442
working-directory: ${{ env.FSHARP_DIR }}
@@ -48,11 +46,15 @@ jobs:
4846
repository: fsprojects/FSharp.Formatting
4947
path: ${{ env.FSF_DIR }}
5048
ref: main
49+
- name: Setup .NET Core for FSharp.Formatting
50+
uses: actions/setup-dotnet@v3
51+
with:
52+
global-json-file: ${{ env.FSF_DIR }}/global.json
5153
- name: Build FSharp.Formatting main
5254
run: .\build -t Build
5355
working-directory: ${{ env.FSF_DIR }}
5456
- name: Run fsdocs
55-
run: dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net7.0\fsdocs.dll build --sourcefolder ${{ env.FSHARP_DIR }}
57+
run: dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net6.0\fsdocs.dll build --sourcefolder ${{ env.FSHARP_DIR }}
5658
- name: Deploy
5759
uses: peaceiris/actions-gh-pages@v3
5860
with:

.github/workflows/pr.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,20 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Setup .NET Core
22-
uses: actions/setup-dotnet@v3
23-
with:
24-
dotnet-version: |
25-
7.0.100
26-
7.0.202
27-
- name: Restore tools
28-
run: dotnet tool restore
29-
- name: Restore projects
30-
run: dotnet restore FSharp.Core\FSharp.Core.fsproj
3121
- name: Checkout fsharp main
3222
uses: actions/checkout@v3
3323
with:
3424
repository: dotnet/fsharp
3525
path: ${{ env.FSHARP_DIR }}
3626
ref: main
27+
- name: Setup .NET Core for FSharp
28+
uses: actions/setup-dotnet@v3
29+
with:
30+
global-json-file: ${{ env.FSHARP_DIR }}/global.json
31+
- name: Restore tools
32+
run: dotnet tool restore
33+
- name: Restore projects
34+
run: dotnet restore FSharp.Core\FSharp.Core.fsproj
3735
- name: Build FSharp.Core in fsharp main
3836
run: dotnet build .\src\FSharp.Core\ /p:BUILDING_USING_DOTNET=true
3937
working-directory: ${{ env.FSHARP_DIR }}
@@ -43,8 +41,12 @@ jobs:
4341
repository: fsprojects/FSharp.Formatting
4442
path: ${{ env.FSF_DIR }}
4543
ref: main
44+
- name: Setup .NET Core for FSharp.Formatting
45+
uses: actions/setup-dotnet@v3
46+
with:
47+
global-json-file: ${{ env.FSF_DIR }}/global.json
4648
- name: Build FSharp.Formatting main
4749
run: .\build -t Build
4850
working-directory: ${{ env.FSF_DIR }}
4951
- name: Run fsdocs
50-
run: dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net7.0\fsdocs.dll build --sourcefolder ${{ env.FSHARP_DIR }}
52+
run: dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net6.0\fsdocs.dll build --sourcefolder ${{ env.FSHARP_DIR }}

0 commit comments

Comments
 (0)