Skip to content

Commit

Permalink
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Oct 14, 2024
1 parent e1fa764 commit df315a9
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/actions/build-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -45,3 +46,4 @@ runs:
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
5 changes: 4 additions & 1 deletion .github/actions/build-tools/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
shell: bash

- name: "Install dotnet"
uses: actions/[email protected].0
uses: actions/[email protected].1
env:
GITHUB_TOKEN: ${{inputs.GITHUB_TOKEN}}
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand All @@ -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.*
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/actions/build-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions .github/actions/dotnet-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ runs:
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
2 changes: 2 additions & 0 deletions .github/actions/dotnet-tool/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -47,3 +48,4 @@ runs:
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
6 changes: 6 additions & 0 deletions .github/actions/dotnet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -135,6 +137,7 @@ runs:
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

# ############################################################################################################
# # DATABASE BUILD
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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: |-
Expand All @@ -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: |-
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' &&
Expand Down Expand Up @@ -158,3 +159,4 @@ runs:
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
15 changes: 15 additions & 0 deletions .github/actions/nuget/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)"
Expand All @@ -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
Expand All @@ -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 != ''
Expand All @@ -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 != ''
Expand All @@ -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 != ''
Expand All @@ -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 != ''
Expand All @@ -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
Expand All @@ -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
Expand All @@ -300,3 +314,4 @@ runs:
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
1 change: 1 addition & 0 deletions .github/actions/sleet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ runs:
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
1 change: 1 addition & 0 deletions .github/actions/sql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
uses: actions/[email protected]
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"
Expand All @@ -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.*
Expand Down Expand Up @@ -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'))
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,7 @@ src/Data
/copilot/chatSessions

# Server packaging
server-dist/
server-dist/

# Nuget
/.nuget/

0 comments on commit df315a9

Please sign in to comment.