Skip to content

Commit

Permalink
RavenDB-23015 use global.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ppekrol committed Oct 15, 2024
1 parent 5005905 commit 1c3e3bb
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 30 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/FastTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ on:
branches:
- v5.4

env:
DOTNET_VERSION: 8.0.403


jobs:
release:
runs-on: ${{ matrix.os }}
Expand All @@ -26,7 +22,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
global-json-file: global.json

- name: Install dependencies
run: dotnet restore
Expand All @@ -50,7 +46,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
global-json-file: global.json

- name: Install dependencies
run: dotnet restore
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/FastTestsARM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- cron: '30 6 * * *'

env:
DOTNET_VERSION: 8.0.403
DOTNET_INSTALL_DIR: "./.dotnet"

jobs:
Expand All @@ -23,7 +22,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
global-json-file: global.json

- name: Install dependencies
run: dotnet restore
Expand All @@ -47,7 +46,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
global-json-file: global.json

- name: Install dependencies
run: dotnet restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/StudioTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
global-json-file: global.json

- name: Install dependencies
run: dotnet restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
global-json-file: global.json

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Grep .Net version
run: |
dotnet_version=$(grep '<TargetFramework>' < src/Raven.Server/Raven.Server.csproj | tr -cd [:digit:].)
echo "DOTNET_VERSION=${dotnet_version}.x" >> $GITHUB_ENV
- name: Install 3.1 sdk
if: startsWith( env.DOTNET_VERSION, '3' )
uses: actions/setup-dotnet@v4
with:
dotnet-version: 3.1.x
- name: Setup .NET 8
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
global-json-file: global.json
- name: Restore
run: |
git clean -xfd
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/studioConventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Grep .Net version
run: |
dotnet_version=$(grep '<TargetFramework>' < src/Raven.Server/Raven.Server.csproj | tr -cd [:digit:].)
echo "DOTNET_VERSION=${dotnet_version}" >> $GITHUB_ENV
- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '${{ env.DOTNET_VERSION }}'
global-json-file: global.json

- name: Install dependencies
run: dotnet restore
Expand Down
1 change: 1 addition & 0 deletions RavenDB.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7C0225BB-6184-4859-8ED1-2251A492A449}"
ProjectSection(SolutionItems) = preProject
src\CommonAssemblyInfo.cs = src\CommonAssemblyInfo.cs
global.json = global.json
RavenDB.ruleset = RavenDB.ruleset
EndProjectSection
EndProject
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": {
"rollForward": "latestFeature",
"version": "8.0.403"
}
}

0 comments on commit 1c3e3bb

Please sign in to comment.