Skip to content

Commit

Permalink
Pin workload version for .NET6 by using global.json (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Nov 27, 2023
1 parent 1bef49e commit 57b2d54
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'

- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x

- name: Install .NET Android and iOS workload
run: dotnet workload install android ios
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'

- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x

- name: Install .NET Android and iOS workload
run: dotnet workload install android ios
Expand Down
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "6.0.417",
"rollForward": "latestFeature"
}
}

0 comments on commit 57b2d54

Please sign in to comment.