|
5 | 5 | branches: |
6 | 6 | - '**' |
7 | 7 |
|
| 8 | +env: |
| 9 | + FSHARP_DIR: fsharp |
| 10 | + |
8 | 11 | jobs: |
9 | 12 | build: |
10 | 13 |
|
11 | 14 | strategy: |
12 | 15 | matrix: |
13 | | - os: [windows-latest] |
| 16 | + os: [ubuntu-latest] |
14 | 17 | dotnet: [6.0.400] |
15 | 18 | runs-on: ${{ matrix.os }} |
16 | 19 |
|
17 | 20 | steps: |
18 | | - - uses: actions/checkout@v3 |
19 | | - - name: Setup .NET |
20 | | - uses: actions/setup-dotnet@v3 |
21 | | - with: |
22 | | - dotnet-version: 7.0.100 |
23 | | - - name: Restore tools |
24 | | - 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 |
31 | | - - name: Run fsdocs |
32 | | - run: dotnet fsdocs build --sourcefolder fsharp --input fsharp/docs |
| 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 |
| 29 | + uses: actions/setup-dotnet@v3 |
| 30 | + with: |
| 31 | + global-json-file: ${{ env.FSHARP_DIR }}/global.json |
| 32 | + - name: Restore tools |
| 33 | + run: dotnet tool restore |
| 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 | + |
| 39 | + - 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" |
| 45 | + run: dotnet fsdocs build --sourcefolder fsharp --input fsharp/docs |
0 commit comments