-
Notifications
You must be signed in to change notification settings - Fork 20
41 lines (38 loc) · 1.34 KB
/
pr.yml
File metadata and controls
41 lines (38 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Pull request checks
on:
pull_request:
branches:
- "**"
env:
FSHARP_DIR: fsharp
FSF_DIR: FSharp.Formatting
BUILDING_USING_DOTNET: true
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- name: Checkout fsharp main
uses: actions/checkout@v6
with:
repository: dotnet/fsharp
path: ${{ env.FSHARP_DIR }}
ref: main
- name: Setup .NET for FSharp
uses: actions/setup-dotnet@v5
with:
global-json-file: ${{ env.FSHARP_DIR }}/global.json
- name: Restore tools
run: dotnet tool restore
- name: Restore local FSharp.Core project in current repo
run: dotnet restore FSharp.Core\FSharp.Core.fsproj
- name: Build FSharp.Core in fsharp main
run: dotnet build src\FSharp.Core\FSharp.Core.fsproj /p:BUILDING_USING_DOTNET=true
working-directory: ${{ env.FSHARP_DIR }}
- name: Run fsdocs
env:
# allow roll forward to latest major version - this would happen for us if we invoked the fsdocs tool instead of invoking the binary directly
DOTNET_ROLL_FORWARD: "LatestMajor"
# need previews because .NET 8 is what's being used at runtime
DOTNET_ROLL_FORWARD_TO_PRERELEASE: "1"
run: dotnet fsdocs build --sourcefolder ${{ env.FSHARP_DIR }}