diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48de22f..0427f67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,6 @@ on: workflow_dispatch: env: - DOTNET_VERSION: ${{ '9.0.x' }} ENABLE_DIAGNOSTICS: false #COREHOST_TRACE: 1 COREHOST_TRACEFILE: corehosttrace.log @@ -29,15 +28,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: Install .NET SDK v${{ env.DOTNET_VERSION }} - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ env.DOTNET_VERSION }} - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout Repository uses: actions/checkout@v4 + - name: Install .NET SDK + uses: actions/setup-dotnet@v4 + with: + global-json-file: global.json + # Restore Tools from Manifest list in the Repository - name: Restore dotnet tools run: dotnet tool restore @@ -49,19 +48,15 @@ jobs: runs-on: ubuntu-latest steps: - - name: Install .NET SDK v${{ env.DOTNET_VERSION }} - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ env.DOTNET_VERSION }} - - - name: .NET Info (if diagnostics) - if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }} - run: dotnet --info - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout Repository uses: actions/checkout@v4 + - name: Install .NET SDK + uses: actions/setup-dotnet@v4 + with: + global-json-file: global.json + - name: dotnet build working-directory: ./ run: dotnet build /bl CommunityToolkit.Tooling.sln -p:Configuration=Release @@ -102,15 +97,6 @@ jobs: maximum-size: 32GB disk-root: "C:" - - name: Install .NET SDK v${{ env.DOTNET_VERSION }} - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ env.DOTNET_VERSION }} - - - name: .NET Info (if diagnostics) - if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }} - run: dotnet --info - - name: Enable git long paths run: git config --system core.longpaths true @@ -120,6 +106,15 @@ jobs: with: path: 'tooling' + - name: Install .NET SDK + uses: actions/setup-dotnet@v4 + with: + global-json-file: tooling/global.json + + - name: .NET Info (if diagnostics) + if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }} + run: dotnet --info + - name: Copy props files to root shell: pwsh working-directory: ./ @@ -167,15 +162,6 @@ jobs: minimum-size: 32GB maximum-size: 32GB disk-root: "C:" - - - name: Install .NET SDK v${{ env.DOTNET_VERSION }} - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ env.DOTNET_VERSION }} - - - name: .NET Info (if diagnostics) - if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }} - run: dotnet --info - name: Enable git long paths run: git config --system core.longpaths true @@ -186,6 +172,15 @@ jobs: with: path: 'tooling' + - name: Install .NET SDK + uses: actions/setup-dotnet@v4 + with: + global-json-file: tooling/global.json + + - name: .NET Info (if diagnostics) + if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }} + run: dotnet --info + - name: Copy props and config files to root and setup structure shell: pwsh working-directory: ./ @@ -253,21 +248,21 @@ jobs: TEST_PROJECT_NAME: CiTestExp steps: - - name: Install .NET SDK v${{ env.DOTNET_VERSION }} + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Checkout Repository + uses: actions/checkout@v4 + with: + path: 'tooling' + + - name: Install .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ env.DOTNET_VERSION }} + global-json-file: tooling/global.json - name: .NET Info (if diagnostics) if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }} run: dotnet --info - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - name: Checkout Repository - uses: actions/checkout@v4 - with: - path: 'tooling' - - name: Copy props and config files to root and setup structure shell: pwsh working-directory: ./ @@ -309,3 +304,5 @@ jobs: with: name: linux-logs path: ./**/*.*log + + diff --git a/global.json b/global.json index 3f28a3a..cfa58f6 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "9.0.308", - "rollForward": "disable" + "version": "9.0.310", + "rollForward": "latestFeature" }, "msbuild-sdks": {