Update .NET SDK to 8.0.404 #1173
Workflow file for this run
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
name: build | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '**/*.gitattributes' | |
- '**/*.gitignore' | |
- '**/*.md' | |
pull_request: | |
branches: | |
- main | |
- dotnet-vnext | |
- dotnet-nightly | |
workflow_dispatch: | |
jobs: | |
build: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ macos-latest, ubuntu-latest, windows-latest ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
- name: Build, Test and Publish | |
id: build | |
shell: pwsh | |
run: ./build.ps1 | |
env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1 | |
NUGET_XMLDOC_MODE: skip | |
TERM: xterm | |
- name: Upload any crash dumps | |
shell: pwsh | |
if: | | |
!cancelled() && | |
steps.build.outcome == 'failure' && | |
github.event.repository.fork == false && | |
github.event.sender.login != 'dependabot[bot]' | |
env: | |
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.CRASH_DUMPS_STORAGE_CONNECTION_STRING }} | |
PSCOMPRESSION_VERSION: '2.0.6' | |
run: | | |
$dumps = Get-ChildItem -Path ${env:GITHUB_WORKSPACE} -Filter "*.dmp" -Recurse | |
if ($null -ne $dumps) { | |
$container = ${env:GITHUB_REPOSITORY}.Replace("/", "-") | |
az storage container create --name $container --public-access off | Out-Null | |
Install-Module PSCompression -RequiredVersion ${env:PSCOMPRESSION_VERSION} -AcceptLicense -Force -Scope CurrentUser | |
$dumps | ForEach-Object { | |
$zipPath = $_.FullName + ".zip" | |
$zipName = $_.Name + ".zip" | |
Write-Output "Compressing crash dump $($_.Name)..." | |
Compress-ZipArchive -Path $_.FullName -Destination $zipPath | |
az storage blob upload ` | |
--container-name $container ` | |
--file $zipPath ` | |
--name $zipName ` | |
--metadata "GITHUB_RUN_ATTEMPT=${env:GITHUB_RUN_ATTEMPT}" "GITHUB_WORKFLOW=${env:GITHUB_SERVER_URL}/${env:GITHUB_REPOSITORY}/actions/runs/${env:GITHUB_RUN_ID}" "RUNNER_OS=${env:RUNNER_OS}" ` | |
--overwrite true | |
if ($LASTEXITCODE -eq 0) { | |
Write-Output "::notice::Uploaded crash dump $($_.Name) to Azure Storage." | |
} | |
} | |
} |