diff --git a/.github/actions/build-check/action.yml b/.github/actions/build-check/action.yml index 7581c37e..6a2c8fb4 100644 --- a/.github/actions/build-check/action.yml +++ b/.github/actions/build-check/action.yml @@ -27,6 +27,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Run build check (Release)" if: env.Release == 'true' @@ -45,3 +46,4 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages diff --git a/.github/actions/build-tools/action.yml b/.github/actions/build-tools/action.yml index 75736008..bdf9f58b 100644 --- a/.github/actions/build-tools/action.yml +++ b/.github/actions/build-tools/action.yml @@ -42,7 +42,7 @@ runs: shell: bash - name: "Install dotnet" - uses: actions/setup-dotnet@v4.0.0 + uses: actions/setup-dotnet@v4.0.1 env: GITHUB_TOKEN: ${{inputs.GITHUB_TOKEN}} DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}" @@ -56,7 +56,9 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages with: + cache: true dotnet-version: | 6.0.* 7.0.* @@ -90,6 +92,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Install Sleet package management tool" uses: ./.github/actions/dotnet-tool diff --git a/.github/actions/build-version/action.yml b/.github/actions/build-version/action.yml index 9525cfc5..cf82eb89 100644 --- a/.github/actions/build-version/action.yml +++ b/.github/actions/build-version/action.yml @@ -32,6 +32,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Log build version" shell: bash diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index f2e520b4..6b3a2857 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -305,6 +305,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Read Release Notes" if: steps.build_tools.outputs.BUILD_ENV == 'true' diff --git a/.github/actions/dotnet-publish/action.yml b/.github/actions/dotnet-publish/action.yml index c5b65d5f..4a86da1b 100644 --- a/.github/actions/dotnet-publish/action.yml +++ b/.github/actions/dotnet-publish/action.yml @@ -70,3 +70,4 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages diff --git a/.github/actions/dotnet-tool/action.yml b/.github/actions/dotnet-tool/action.yml index bd8d771a..dcc7c0c5 100644 --- a/.github/actions/dotnet-tool/action.yml +++ b/.github/actions/dotnet-tool/action.yml @@ -30,6 +30,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Install dotnet tool (Specific Version)" if: inputs.TOOL_VERSION != 'latest' @@ -47,3 +48,4 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages diff --git a/.github/actions/dotnet/action.yml b/.github/actions/dotnet/action.yml index 55e096f7..faebe51a 100644 --- a/.github/actions/dotnet/action.yml +++ b/.github/actions/dotnet/action.yml @@ -98,6 +98,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Build (Non-Release)" working-directory: ${{github.workspace}}/src @@ -116,6 +117,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages ## RUN TESTS - name: "Dotnet: Test" @@ -135,6 +137,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages # ############################################################################################################ # # DATABASE BUILD @@ -181,6 +184,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Copy packed to dist" if: inputs.NUGET_PACK == 'true' @@ -210,6 +214,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Publish Packages to Nuget (With separate symbol feed)" if: |- @@ -231,6 +236,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Publish Packages using sleet" if: |- diff --git a/.github/actions/npm/action.yml b/.github/actions/npm/action.yml index 0faea7b4..f6f1865c 100644 --- a/.github/actions/npm/action.yml +++ b/.github/actions/npm/action.yml @@ -112,6 +112,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - if: | inputs.NPM_SIGNING == 'true' && @@ -158,3 +159,4 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages diff --git a/.github/actions/nuget/action.yml b/.github/actions/nuget/action.yml index 105c1e6c..46d5bb6e 100644 --- a/.github/actions/nuget/action.yml +++ b/.github/actions/nuget/action.yml @@ -43,6 +43,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages ### REMOVE FEEDS - name: "Dotnet: Remove cache nuget feed (NugetCache) if it exists" @@ -62,6 +63,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Remove cache nuget feed (nuget.org) if it exists" shell: bash @@ -80,6 +82,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Remove optional nuget feed (Additional1Cache) if it exists" shell: bash @@ -98,6 +101,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Remove optional nuget feed (Additional2Cache) if it exists" shell: bash @@ -116,6 +120,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Remove optional nuget feed (Additional1) if it exists" shell: bash @@ -134,6 +139,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Remove optional nuget feed (Additional2) if it exists" shell: bash @@ -152,6 +158,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages #### ADD FEEDS - name: "Dotnet: Add optional nuget feed (NugetCache)" @@ -172,6 +179,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Add nuget feed (nuget.org)" shell: bash @@ -190,6 +198,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Add optional nuget feed (Additional1Cache)" if: inputs.NUGET_ADDITIONAL_RESTORE_FEED_RELEASE_CACHE != '' @@ -209,6 +218,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Add optional nuget feed (Additional2Cache)" if: inputs.NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE_CACHE != '' @@ -228,6 +238,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Add optional nuget feed (Additional1)" if: inputs.NUGET_ADDITIONAL_RESTORE_FEED_RELEASE != '' @@ -247,6 +258,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Add optional nuget feed (Additional2)" if: inputs.NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE != '' @@ -266,6 +278,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Show sources (After)" shell: bash @@ -284,6 +297,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Dotnet: Clear nuget cache" shell: bash @@ -300,3 +314,4 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages diff --git a/.github/actions/sleet/action.yml b/.github/actions/sleet/action.yml index 01530dd5..2a249f3f 100644 --- a/.github/actions/sleet/action.yml +++ b/.github/actions/sleet/action.yml @@ -35,3 +35,4 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages diff --git a/.github/actions/sql/action.yml b/.github/actions/sql/action.yml index 4192bcfb..e13447ad 100644 --- a/.github/actions/sql/action.yml +++ b/.github/actions/sql/action.yml @@ -36,6 +36,7 @@ runs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "SQL: Get SQL Compare" shell: bash diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 96b0b025..15b66379 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -113,7 +113,7 @@ jobs: uses: actions/setup-dotnet@v4.0.1 env: GITHUB_TOKEN: ${{secrets.SOURCE_PUSH_TOKEN}} - DDOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}" + DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}" DOTNET_INSTALL_DIR: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}" DOTNET_MULTILEVEL_LOOKUP: "false" DOTNET_NOLOGO: "true" @@ -124,7 +124,9 @@ jobs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages with: + cache: true dotnet-version: | 6.0.* 7.0.* @@ -176,6 +178,7 @@ jobs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: "Install Changelog tool" if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) @@ -200,6 +203,7 @@ jobs: DOTNET_TC_CallCountingDelayMs: "0" DOTNET_TieredPGO: "1" MSBUILDTERMINALLOGGER: "auto" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages does-not-contain-secrets: if: github.event.pull_request.draft == false diff --git a/.gitignore b/.gitignore index e6c3eb4e..a0d64df2 100644 --- a/.gitignore +++ b/.gitignore @@ -370,4 +370,7 @@ src/Data /copilot/chatSessions # Server packaging -server-dist/ \ No newline at end of file +server-dist/ + +# Nuget +/.nuget/ \ No newline at end of file