Skip to content

Commit

Permalink
Use .NET version from global.json for setup-dotnet action
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Mar 9, 2024
1 parent 0f8df87 commit b5552ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
global-json-file: global.json

- name: Cache SonarCloud packages
uses: actions/cache@v4
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
arch: ['amd64']
dotnet-version: ['8.0']
fail-fast: false

name: Build library (${{ matrix.os }})
Expand All @@ -46,10 +45,10 @@ jobs:
fetch-depth: 0
ref: ${{ env.BuildBranch }}

- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
global-json-file: global.json

- name: Build
run: dotnet build --configuration Release /p:BuildType=Full
Expand Down

0 comments on commit b5552ce

Please sign in to comment.