-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK - Update DotNet SDK to 8.0.202 (#421)
<!--- Provide a general summary of your changes in the Title above that includes the Jira Ticket --> # Description <!--- Describe your changes in detail --> # Related Issue\Feature <!--- Please link to the issue or feature: --> # How Has This Been Tested - [ ] All unit tests pass. - [ ] All integration tests pass. - [ ] Manual Testing: <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> # Types of changes <!--- What types of changes does your code introduce? Put an 'x' in all the boxes that apply: --> <!-- Note that you can just click these after submission and it will remember the tick for you --> - [ ] Docs change - [ ] Refactoring - [ ] Dependency upgrade - [ ] Additional Unit Tests\Integration Tests - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Removed no-longer used code ## Deployment Configuration Changes - [ ] Requires deployment configuration changes as specified below and in CHANGELOG.md <!--- Insert Deployment configuration changes here --> # Checklist <!--- Go over all the following points, and put an 'x' in all the boxes once they are true. --> <!-- Note that you can just click these after submission and it will remember the tick for you --> - [ ] There are no Resharper\static code analysis errors anywhere in the solution. - [ ] I have ONLY run a code clean-up on any files I have modified to make sure they are in the correct format and no others. - [ ] I have added tests to cover my changes. - [ ] I have run the code and quickly verified it all works to my satisfaction. - [ ] All new/modified code has sufficient logging to be able to diagnose what is wrong. - [ ] All new and existing tests passed. - [ ] All new/modified public interfaces/classes have are documented with xmldoc comments. - [ ] Unreleased section of CHANGELOG.md has been updated with details of this PR.
- Loading branch information
Showing
11 changed files
with
112 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- # Define build version properites | ||
name: 'Define Build Version' | ||
description: 'Defines the build version properties' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Get Unique Build Number" | ||
if: steps.build_tools.outputs.BUILD_ENV == 'true' | ||
uses: onyxmueller/[email protected] | ||
id: build-number | ||
with: | ||
token: ${{inputs.GITHUB_TOKEN}} | ||
prefix: github | ||
|
||
- if: steps.build_tools.outputs.BUILD_ENV == 'true' | ||
name: "Set Define Build Version" | ||
shell: bash | ||
run: dotnet buildversion --BuildNumber "${{steps.build-number.outputs.build_number}}" | ||
env: | ||
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" | ||
DOTNET_PRINT_TELEMETRY_MESSAGE: "false" | ||
DOTNET_ReadyToRun: "0" | ||
DOTNET_TC_QuickJitForLoops: "1" | ||
DOTNET_TieredPGO: "1" | ||
MSBUILDTERMINALLOGGER: "auto" | ||
|
||
- if: steps.build_tools.outputs.BUILD_ENV == 'true' | ||
name: "Log build version" | ||
shell: bash | ||
run: | | ||
echo "****************************************************************" | ||
echo "* Current Build: ${{env.BUILD_VERSION}}" | ||
echo "****************************************************************" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,14 +123,9 @@ runs: | |
core.info('NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE}}'); | ||
core.info('NUGET_PACK: ${{inputs.NUGET_PACK}}'); | ||
- name: "Fetch tags and master" | ||
- name: "Set branch" | ||
shell: bash | ||
run: | | ||
git fetch --tags | ||
echo "REF: $GITHUB_REF" | ||
echo "SHA: $GITHUB_SHA" | ||
echo "GIT_BRANCH=$GITHUB_REF" >> "$GITHUB_ENV" | ||
git branch --remote | ||
run: echo "GIT_BRANCH=$GITHUB_REF" >> "$GITHUB_ENV" | ||
|
||
- name: "Check file existence" | ||
id: check_files | ||
|
@@ -185,27 +180,7 @@ runs: | |
TOOL_VERSION: latest | ||
- name: "Get Unique Build Number" | ||
if: steps.build_tools.outputs.BUILD_ENV == 'true' | ||
uses: onyxmueller/[email protected] | ||
id: build-number | ||
with: | ||
token: ${{inputs.GITHUB_TOKEN}} | ||
prefix: github | ||
|
||
- if: steps.build_tools.outputs.BUILD_ENV == 'true' | ||
name: "Set Define Build Version" | ||
shell: bash | ||
run: dotnet buildversion --BuildNumber "${{steps.build-number.outputs.build_number}}" | ||
env: | ||
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" | ||
DOTNET_PRINT_TELEMETRY_MESSAGE: "false" | ||
DOTNET_ReadyToRun: "0" | ||
DOTNET_TC_QuickJitForLoops: "1" | ||
DOTNET_TieredPGO: "1" | ||
MSBUILDTERMINALLOGGER: "auto" | ||
uses: ./.github/actions/build-version | ||
|
||
- name: "Deploy check - Default" | ||
shell: bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,9 +40,10 @@ jobs: | |
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Check Repo Visibility" | ||
uses: credfeto/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,10 @@ jobs: | |
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Check Repo Visibility" | ||
uses: credfeto/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,10 +33,12 @@ jobs: | |
- name: "Ensure JQ is installed" | ||
shell: bash | ||
run: sudo apt install -y jq | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
ref: main | ||
repository: ${{github.repository}} | ||
|
||
|
@@ -67,10 +69,12 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
ref: main | ||
repository: ${{github.repository}} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,9 +41,10 @@ jobs: | |
# shell: bash | ||
# run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
# - name: "Checkout Source" | ||
# uses: actions/[email protected].2 | ||
# uses: actions/[email protected].1 | ||
# with: | ||
# fetch-depth: 0 | ||
# fetch-tags: true | ||
# - if: |- | ||
# !endsWith(github.repository, '-template') | ||
# && !startsWith(github.head_ref, 'release/') | ||
|
@@ -60,14 +61,21 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
- if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: actions/[email protected] | ||
|
||
- name: "Checkout Source" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
fetch-tags: true | ||
|
||
- name: "Diff Changes" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
shell: bash | ||
run: echo "CHANGES=$(git diff --exit-code --no-patch --merge-base origin/main CHANGELOG.md 2> /dev/null && echo 0 || echo $?)" >> "$GITHUB_ENV" | ||
- if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) && env.CHANGES == '0' | ||
|
||
- name: "Report unchanged" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) && env.CHANGES == '0' | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
|
@@ -81,16 +89,20 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Get version from global.json" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: credfeto/[email protected] | ||
with: | ||
file: src/global.json | ||
fallback: 8.0.* | ||
|
||
- name: "Install dotnet" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: actions/[email protected] | ||
|
@@ -111,12 +123,14 @@ jobs: | |
7.0.* | ||
8.0.* | ||
${{env.DOTNET_VERSION}} | ||
- name: "Check Runner details" | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
core.info('Name: ${{runner.name}}'); | ||
core.info('OS: ${{runner.os}}'); | ||
- name: "Enable Local nuget feeds if caching" | ||
if: startsWith(runner.name, 'buildagent-') | ||
id: nuget-local-cache | ||
|
@@ -127,6 +141,7 @@ jobs: | |
echo "PRERELEASE_BAGET_CACHE=${{vars.PRERELEASE_BAGET_CACHE}}" | ||
echo "RELEASE_BAGET_CACHE=${{vars.RELEASE_BAGET_CACHE}}" | ||
}>> "$GITHUB_OUTPUT" | ||
- name: "Configure nuget feeds" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: ./.github/actions/nuget | ||
|
@@ -137,6 +152,7 @@ jobs: | |
NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE_CACHE: "" | ||
NUGET_ADDITIONAL_RESTORE_FEED_RELEASE: ${{vars.NUGET_ADDITIONAL_RESTORE_FEED_RELEASE}} | ||
NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE: "" | ||
|
||
- name: "Enable dotnet tools" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
shell: bash | ||
|
@@ -151,12 +167,14 @@ jobs: | |
DOTNET_TC_QuickJitForLoops: "1" | ||
DOTNET_TieredPGO: "1" | ||
MSBUILDTERMINALLOGGER: "auto" | ||
|
||
- name: "Install Changelog tool" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: ./.github/actions/dotnet-tool | ||
with: | ||
TOOL_NAME: Credfeto.ChangeLog.Cmd | ||
TOOL_VERSION: latest | ||
|
||
- name: "Check Changelog" | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
shell: bash | ||
|
@@ -179,10 +197,13 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Check for leaks" | ||
uses: DariuszPorowski/[email protected] | ||
id: gitleaks | ||
|
@@ -201,10 +222,13 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Check for merge conflicts" | ||
uses: olivernybroe/[email protected] | ||
|
||
|
@@ -215,10 +239,13 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Check for case conflicts" | ||
uses: credfeto/[email protected] | ||
|
||
|
@@ -229,10 +256,13 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Check for ignored files" | ||
uses: credfeto/[email protected] | ||
|
||
|
@@ -244,18 +274,22 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- uses: credfeto/[email protected] | ||
id: visibility | ||
with: | ||
# optional parameter defaults to the current repo | ||
repository: ${{github.repository}} | ||
# optional parameter defaults to the current user | ||
token: ${{github.token}} | ||
|
||
- name: "Checkout Source" | ||
if: steps.visibility.outputs.is_public == 'true' | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: 'Dependency Review' | ||
if: steps.visibility.outputs.is_public == 'true' | ||
uses: actions/[email protected] | ||
|
@@ -268,10 +302,13 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Check for merge commits" | ||
uses: greenled/[email protected] | ||
|
||
|
@@ -284,10 +321,13 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: "Run Linter" | ||
uses: github/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,9 +51,10 @@ jobs: | |
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 1 | ||
fetch-tags: true | ||
|
||
- name: "Find PR For branch" | ||
uses: juliangruber/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,10 @@ jobs: | |
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
token: ${{secrets.SOURCE_PUSH_TOKEN}} | ||
|
||
- name: "Reformat" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,10 @@ jobs: | |
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
|
||
- name: "Checkout Source" | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
token: ${{secrets.SOURCE_PUSH_TOKEN}} | ||
|
||
- name: "Reformat" | ||
|
Oops, something went wrong.