You've already forked setup-dotnet
							
							
				mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 07:16:21 +07:00 
			
		
		
		
	Compare commits
	
		
			7 Commits
		
	
	
		
			fix-regex
			...
			releases/v
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 00e970a9a7 | |||
| 76585d940e | |||
| bb95ce727f | |||
| cc372bb13c | |||
| 86c0b21a03 | |||
| d6b77de15f | |||
| a668ade667 | 
							
								
								
									
										7
									
								
								.github/csc.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/csc.json
									
									
									
									
										vendored
									
									
								
							| @ -4,15 +4,14 @@ | ||||
|             "owner": "csc", | ||||
|             "pattern": [ | ||||
|                 { | ||||
|                     "regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)(\\[(.+)\\/([^\\/]+)\\])$", | ||||
|                     "regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(CS\\d+)\\s*:\\s*(.*)$", | ||||
|                     "file": 1, | ||||
|                     "location": 2, | ||||
|                     "severity": 3, | ||||
|                     "code": 4, | ||||
|                     "message": 5, | ||||
|                     "fromPath": 7 | ||||
|                     "message": 5 | ||||
|                 } | ||||
|             ] | ||||
|         } | ||||
|     ] | ||||
| } | ||||
| } | ||||
							
								
								
									
										2
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,5 +1,5 @@ | ||||
| name: Main workflow | ||||
| on: [push] | ||||
| on: [push, pull_request] | ||||
| jobs: | ||||
|   run: | ||||
|     name: Run | ||||
|  | ||||
| @ -1,9 +1,9 @@ | ||||
| name: 'Setup Dotnet environment' | ||||
| description: 'Setup a Dotnet environment and add it to the PATH, additionally providing proxy support' | ||||
| name: 'Setup .NET Core SDK' | ||||
| description: 'Set up a specific version of the .NET Core SDK and add the command-line tools to the PATH' | ||||
| author: 'GitHub' | ||||
| inputs:  | ||||
|   dotnet-version: | ||||
|     description: 'SDK version to use. E.g. 2.2.104' | ||||
|     description: 'SDK version to use. Example: 2.2.104' | ||||
| # Deprecated option, do not use. Will not be supported after October 1, 2019 | ||||
|   version: | ||||
|     description: 'Deprecated. Use dotnet-version instead. Will not be supported after October 1, 2019' | ||||
|  | ||||
							
								
								
									
										14
									
								
								externals/install-dotnet.ps1
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								externals/install-dotnet.ps1
									
									
									
									
										vendored
									
									
								
							| @ -46,6 +46,7 @@ | ||||
|     Possible values: | ||||
|         - dotnet     - the Microsoft.NETCore.App shared runtime | ||||
|         - aspnetcore - the Microsoft.AspNetCore.App shared runtime | ||||
|         - windowsdesktop - the Microsoft.WindowsDesktop.App shared runtime | ||||
| .PARAMETER DryRun | ||||
|     If set it will not perform installation but instead display what command line to use to consistently install | ||||
|     currently requested version of dotnet cli. In example if you specify version 'latest' it will display a link | ||||
| @ -83,7 +84,7 @@ param( | ||||
|    [string]$Version="Latest", | ||||
|    [string]$InstallDir="<auto>", | ||||
|    [string]$Architecture="<auto>", | ||||
|    [ValidateSet("dotnet", "aspnetcore", IgnoreCase = $false)] | ||||
|    [ValidateSet("dotnet", "aspnetcore", "windowsdesktop", IgnoreCase = $false)] | ||||
|    [string]$Runtime, | ||||
|    [Obsolete("This parameter may be removed in a future version of this script. The recommended alternative is '-Runtime dotnet'.")] | ||||
|    [switch]$SharedRuntime, | ||||
| @ -268,6 +269,10 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$Channel, [bool]$Co | ||||
|     elseif ($Runtime -eq "aspnetcore") { | ||||
|         $VersionFileUrl = "$UncachedFeed/aspnetcore/Runtime/$Channel/latest.version" | ||||
|     } | ||||
|     # Currently, the WindowsDesktop runtime is manufactured with the .Net core runtime | ||||
|     elseif ($Runtime -eq "windowsdesktop") { | ||||
|         $VersionFileUrl = "$UncachedFeed/Runtime/$Channel/latest.version" | ||||
|     } | ||||
|     elseif (-not $Runtime) { | ||||
|         if ($Coherent) { | ||||
|             $VersionFileUrl = "$UncachedFeed/Sdk/$Channel/latest.coherent.version" | ||||
| @ -325,6 +330,9 @@ function Get-Download-Link([string]$AzureFeed, [string]$SpecificVersion, [string | ||||
|     elseif ($Runtime -eq "aspnetcore") { | ||||
|         $PayloadURL = "$AzureFeed/aspnetcore/Runtime/$SpecificVersion/aspnetcore-runtime-$SpecificVersion-win-$CLIArchitecture.zip" | ||||
|     } | ||||
|     elseif ($Runtime -eq "windowsdesktop") { | ||||
|         $PayloadURL = "$AzureFeed/Runtime/$SpecificVersion/windowsdesktop-runtime-$SpecificVersion-win-$CLIArchitecture.zip" | ||||
|     } | ||||
|     elseif (-not $Runtime) { | ||||
|         $PayloadURL = "$AzureFeed/Sdk/$SpecificVersion/dotnet-sdk-$SpecificVersion-win-$CLIArchitecture.zip" | ||||
|     } | ||||
| @ -564,6 +572,10 @@ elseif ($Runtime -eq "aspnetcore") { | ||||
|     $assetName = "ASP.NET Core Runtime" | ||||
|     $dotnetPackageRelativePath = "shared\Microsoft.AspNetCore.App" | ||||
| } | ||||
| elseif ($Runtime -eq "windowsdesktop") { | ||||
|     $assetName = ".NET Core Windows Desktop Runtime" | ||||
|     $dotnetPackageRelativePath = "shared\Microsoft.WindowsDesktop.App" | ||||
| } | ||||
| elseif (-not $Runtime) { | ||||
|     $assetName = ".NET Core SDK" | ||||
|     $dotnetPackageRelativePath = "sdk" | ||||
|  | ||||
							
								
								
									
										8
									
								
								externals/install-dotnet.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								externals/install-dotnet.sh
									
									
									
									
										vendored
									
									
								
							| @ -148,7 +148,7 @@ get_linux_platform_name() { | ||||
|             return 0 | ||||
|         elif [ -e /etc/redhat-release ]; then | ||||
|             local redhatRelease=$(</etc/redhat-release) | ||||
|             if [[ $redhatRelease == "CentOS release 6."* || $redhatRelease == "Red Hat Enterprise Linux Server release 6."* ]]; then | ||||
|             if [[ $redhatRelease == "CentOS release 6."* || $redhatRelease == "Red Hat Enterprise Linux "*" release 6."* ]]; then | ||||
|                 echo "rhel.6" | ||||
|                 return 0 | ||||
|             fi | ||||
| @ -612,6 +612,9 @@ copy_files_or_dirs_from_list() { | ||||
|         local target="$out_path/$path" | ||||
|         if [ "$override" = true ] || (! ([ -d "$target" ] || [ -e "$target" ])); then | ||||
|             mkdir -p "$out_path/$(dirname "$path")" | ||||
|             if [ -d "$target" ]; then | ||||
|                 rm -rf "$target" | ||||
|             fi | ||||
|             cp -R $override_switch "$root_path/$path" "$target" | ||||
|         fi | ||||
|     done | ||||
| @ -868,6 +871,9 @@ do | ||||
|             runtime="$1" | ||||
|             if [[ "$runtime" != "dotnet" ]] && [[ "$runtime" != "aspnetcore" ]]; then | ||||
|                 say_err "Unsupported value for --runtime: '$1'. Valid values are 'dotnet' and 'aspnetcore'." | ||||
|                 if [[ "$runtime" == "windowsdesktop" ]]; then | ||||
|                     say_err "WindowsDesktop archives are manufactured for Windows platforms only." | ||||
|                 fi | ||||
|                 exit 1 | ||||
|             fi | ||||
|             ;; | ||||
|  | ||||
| @ -73,7 +73,7 @@ class DotnetCoreInstaller { | ||||
|                 console.log('Using cached tool'); | ||||
|             } | ||||
|             // Need to set this so that .NET Core global tools find the right locations. | ||||
|             core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..')); | ||||
|             core.exportVariable('DOTNET_ROOT', toolPath); | ||||
|             // Prepend the tools path. instructs the agent to prepend for future tasks | ||||
|             core.addPath(toolPath); | ||||
|         }); | ||||
|  | ||||
							
								
								
									
										69
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										69
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -1157,9 +1157,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "commander": { | ||||
|       "version": "2.20.0", | ||||
|       "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", | ||||
|       "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", | ||||
|       "version": "2.20.3", | ||||
|       "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", | ||||
|       "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", | ||||
|       "dev": true, | ||||
|       "optional": true | ||||
|     }, | ||||
| @ -2374,9 +2374,9 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "handlebars": { | ||||
|       "version": "4.1.2", | ||||
|       "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz", | ||||
|       "integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==", | ||||
|       "version": "4.4.5", | ||||
|       "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.4.5.tgz", | ||||
|       "integrity": "sha512-0Ce31oWVB7YidkaTq33ZxEbN+UDxMMgThvCe8ptgQViymL5DPis9uLdTA13MiRPhgvqyxIegugrP97iK3JeBHg==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "neo-async": "^2.6.0", | ||||
| @ -3551,9 +3551,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "lodash": { | ||||
|       "version": "4.17.11", | ||||
|       "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", | ||||
|       "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", | ||||
|       "version": "4.17.15", | ||||
|       "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", | ||||
|       "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "lodash.sortby": { | ||||
| @ -3712,9 +3712,9 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "mixin-deep": { | ||||
|       "version": "1.3.1", | ||||
|       "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", | ||||
|       "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", | ||||
|       "version": "1.3.2", | ||||
|       "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", | ||||
|       "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "for-in": "^1.0.2", | ||||
| @ -4568,9 +4568,9 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "set-value": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", | ||||
|       "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", | ||||
|       "version": "2.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", | ||||
|       "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "extend-shallow": "^2.0.1", | ||||
| @ -5161,13 +5161,13 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "uglify-js": { | ||||
|       "version": "3.6.0", | ||||
|       "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.0.tgz", | ||||
|       "integrity": "sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==", | ||||
|       "version": "3.6.3", | ||||
|       "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.3.tgz", | ||||
|       "integrity": "sha512-KfQUgOqTkLp2aZxrMbCuKCDGW9slFYu2A23A36Gs7sGzTLcRBDORdOi5E21KWHFIfkY8kzgi/Pr1cXCh0yIp5g==", | ||||
|       "dev": true, | ||||
|       "optional": true, | ||||
|       "requires": { | ||||
|         "commander": "~2.20.0", | ||||
|         "commander": "~2.20.3", | ||||
|         "source-map": "~0.6.1" | ||||
|       } | ||||
|     }, | ||||
| @ -5177,38 +5177,15 @@ | ||||
|       "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" | ||||
|     }, | ||||
|     "union-value": { | ||||
|       "version": "1.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", | ||||
|       "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", | ||||
|       "version": "1.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", | ||||
|       "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "arr-union": "^3.1.0", | ||||
|         "get-value": "^2.0.6", | ||||
|         "is-extendable": "^0.1.1", | ||||
|         "set-value": "^0.4.3" | ||||
|       }, | ||||
|       "dependencies": { | ||||
|         "extend-shallow": { | ||||
|           "version": "2.0.1", | ||||
|           "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", | ||||
|           "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", | ||||
|           "dev": true, | ||||
|           "requires": { | ||||
|             "is-extendable": "^0.1.0" | ||||
|           } | ||||
|         }, | ||||
|         "set-value": { | ||||
|           "version": "0.4.3", | ||||
|           "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", | ||||
|           "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", | ||||
|           "dev": true, | ||||
|           "requires": { | ||||
|             "extend-shallow": "^2.0.1", | ||||
|             "is-extendable": "^0.1.1", | ||||
|             "is-plain-object": "^2.0.1", | ||||
|             "to-object-path": "^0.3.0" | ||||
|           } | ||||
|         } | ||||
|         "set-value": "^2.0.1" | ||||
|       } | ||||
|     }, | ||||
|     "unset-value": { | ||||
|  | ||||
| @ -59,7 +59,7 @@ export class DotnetCoreInstaller { | ||||
|     } | ||||
|  | ||||
|     // Need to set this so that .NET Core global tools find the right locations. | ||||
|     core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..')); | ||||
|     core.exportVariable('DOTNET_ROOT', toolPath); | ||||
|  | ||||
|     // Prepend the tools path. instructs the agent to prepend for future tasks | ||||
|     core.addPath(toolPath); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	