Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
Use global.json for .NET 6 build

See: dotnet/fsharp#14313
  • Loading branch information
hyazinthh committed Apr 5, 2023
1 parent d49a86d commit eb81310
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .github/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "6.0.0",
"rollForward": "latestFeature",
"allowPrerelease": false
}
}
8 changes: 5 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Copy global.json
run: cp ./.github/global.json .
- name: Install Dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.100'
global-json-file: global.json
- name: Build
run: sh ./build.sh
8 changes: 5 additions & 3 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Copy global.json
run: cp ./.github/global.json .
- name: Install Dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.100'
global-json-file: global.json
- name: Build
run: bash ./build.sh
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Copy global.json
run: cp ./.github/global.json .
- name: Install Dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.100'
global-json-file: global.json
- name: Restore Tools
run: dotnet tool restore
- name: Restore
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Copy global.json
run: cp ./.github/global.json .
- name: Install Dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.100'
global-json-file: global.json
- name: Build
run: .\build.cmd

0 comments on commit eb81310

Please sign in to comment.