You've already forked setup-dotnet
							
							
				mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 15:26:22 +07:00 
			
		
		
		
	Compare commits
	
		
			14 Commits
		
	
	
		
			v1.9.0
			...
			restore-ol
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 871f041373 | |||
| 67cd79ce76 | |||
| b3da5ab48f | |||
| 65c71668de | |||
| f2d774a272 | |||
| 8f3cbf74e2 | |||
| e31c9045e5 | |||
| 0d16f91084 | |||
| 71a4fd9b27 | |||
| 608ee757cf | |||
| e54e706650 | |||
| c20f59e04a | |||
| 13b852df87 | |||
| f85bcda870 | 
							
								
								
									
										2
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							| @ -44,7 +44,7 @@ jobs: | |||||||
|         id: diff |         id: diff | ||||||
|  |  | ||||||
|       # If index.js was different than expected, upload the expected version as an artifact |       # If index.js was different than expected, upload the expected version as an artifact | ||||||
|       - uses: actions/upload-artifact@v2 |       - uses: actions/upload-artifact@v4 | ||||||
|         if: ${{ failure() && steps.diff.conclusion == 'failure' }} |         if: ${{ failure() && steps.diff.conclusion == 'failure' }} | ||||||
|         with: |         with: | ||||||
|           name: dist |           name: dist | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								.github/workflows/licensed.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/licensed.yml
									
									
									
									
										vendored
									
									
								
							| @ -7,6 +7,7 @@ on: | |||||||
|   pull_request: |   pull_request: | ||||||
|     branches: |     branches: | ||||||
|       - main |       - main | ||||||
|  |   workflow_dispatch: | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   test: |   test: | ||||||
| @ -18,7 +19,7 @@ jobs: | |||||||
|       - name: Install licensed |       - name: Install licensed | ||||||
|         run: | |         run: | | ||||||
|           cd $RUNNER_TEMP |           cd $RUNNER_TEMP | ||||||
|           curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz |           curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.3.1/licensed-3.3.1-linux-x64.tar.gz | ||||||
|           sudo tar -xzf licensed.tar.gz |           sudo tar -xzf licensed.tar.gz | ||||||
|           sudo mv licensed /usr/local/bin/licensed |           sudo mv licensed /usr/local/bin/licensed | ||||||
|       - run: licensed status |       - run: licensed status | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.github/workflows/test-dotnet.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/test-dotnet.yml
									
									
									
									
										vendored
									
									
								
							| @ -17,7 +17,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         operating-system: [ubuntu-latest, windows-latest, macOS-latest] |         operating-system: [ubuntu-22.04, windows-latest, macOS-latest] | ||||||
|         dotnet-version: ['2.1', '2.2', '3.0', '3.1', '5.0'] |         dotnet-version: ['2.1', '2.2', '3.0', '3.1', '5.0'] | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|  | |||||||
							
								
								
									
										26
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							| @ -17,7 +17,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         operating-system: [ubuntu-latest, windows-latest, macOS-latest] |         operating-system: [ubuntu-22.04, windows-latest, macos-13] | ||||||
|     steps: |     steps: | ||||||
|     - name: Checkout |     - name: Checkout | ||||||
|       uses: actions/checkout@v2 |       uses: actions/checkout@v2 | ||||||
| @ -38,7 +38,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         operating-system: [ubuntu-latest, windows-latest, macOS-latest] |         operating-system: [ubuntu-22.04, windows-latest, macOS-latest] | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
| @ -61,7 +61,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         operating-system: [ubuntu-latest, windows-latest, macOS-latest] |         operating-system: [ubuntu-22.04, windows-latest, macos-13] | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
| @ -94,7 +94,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         operating-system: [ubuntu-latest, windows-latest, macOS-latest] |         operating-system: [ubuntu-22.04, windows-latest, macOS-latest] | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
| @ -119,7 +119,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         operating-system: [ubuntu-latest, windows-latest, macOS-latest] |         operating-system: [ubuntu-22.04, windows-latest, macOS-latest] | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
| @ -143,7 +143,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         operating-system: [ubuntu-latest, windows-latest, macOS-latest] |         operating-system: [ubuntu-22.04, windows-latest, macOS-latest] | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
| @ -163,18 +163,20 @@ jobs: | |||||||
|         run: __tests__/verify-dotnet.ps1 3.1 2.2 |         run: __tests__/verify-dotnet.ps1 3.1 2.2 | ||||||
|  |  | ||||||
|   test-proxy: |   test-proxy: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-20.04 | ||||||
|     container: |     container: | ||||||
|       image: mcr.microsoft.com/dotnet/core/runtime-deps:3.0-bionic |       image: ubuntu:20.04 | ||||||
|       options: --dns 127.0.0.1 |       options: --dns 127.0.0.1 | ||||||
|     services: |     services: | ||||||
|       squid-proxy: |       squid-proxy: | ||||||
|         image: datadog/squid:latest |         image: ubuntu/squid:latest | ||||||
|         ports: |         ports: | ||||||
|           - 3128:3128 |           - 3128:3128 | ||||||
|     env: |     env: | ||||||
|       https_proxy: http://squid-proxy:3128 |       https_proxy: http://squid-proxy:3128 | ||||||
|       http_proxy: http://squid-proxy:3128 |       http_proxy: http://squid-proxy:3128 | ||||||
|  |       DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: true | ||||||
|  |  | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
| @ -183,7 +185,7 @@ jobs: | |||||||
|       - name: Install curl |       - name: Install curl | ||||||
|         run: | |         run: | | ||||||
|           apt update |           apt update | ||||||
|           apt -y install curl |           apt -y install curl libssl-dev | ||||||
|       - name: Setup dotnet 3.1.201 |       - name: Setup dotnet 3.1.201 | ||||||
|         uses: ./ |         uses: ./ | ||||||
|         with: |         with: | ||||||
| @ -195,10 +197,10 @@ jobs: | |||||||
|         run: __tests__/verify-dotnet.sh 3.1.201 |         run: __tests__/verify-dotnet.sh 3.1.201 | ||||||
|  |  | ||||||
|   test-bypass-proxy: |   test-bypass-proxy: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-22.04 | ||||||
|     env: |     env: | ||||||
|       https_proxy: http://no-such-proxy:3128 |       https_proxy: http://no-such-proxy:3128 | ||||||
|       no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net |       no_proxy: github.com,download.visualstudio.microsoft.com,api.nuget.org,builds.dotnet.microsoft.com,ci.dot.net | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
|  | |||||||
| @ -34,9 +34,9 @@ Multiple versions: | |||||||
|  |  | ||||||
| ```yml | ```yml | ||||||
| steps: | steps: | ||||||
| - name: Setup dotnet |  | ||||||
| - uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||||
| - uses: actions/setup-dotnet@v1 | - name: Setup dotnet | ||||||
|  |   uses: actions/setup-dotnet@v1 | ||||||
|   with: |   with: | ||||||
|     dotnet-version: |  |     dotnet-version: |  | ||||||
|       3.1.x |       3.1.x | ||||||
|  | |||||||
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -8687,7 +8687,7 @@ function run() { | |||||||
|                 const includePrerelease = (core.getInput('include-prerelease') || 'false').toLowerCase() === |                 const includePrerelease = (core.getInput('include-prerelease') || 'false').toLowerCase() === | ||||||
|                     'true'; |                     'true'; | ||||||
|                 let dotnetInstaller; |                 let dotnetInstaller; | ||||||
|                 for (const version of versions) { |                 for (const version of new Set(versions)) { | ||||||
|                     dotnetInstaller = new installer.DotnetCoreInstaller(version, includePrerelease); |                     dotnetInstaller = new installer.DotnetCoreInstaller(version, includePrerelease); | ||||||
|                     yield dotnetInstaller.installDotnet(); |                     yield dotnetInstaller.installDotnet(); | ||||||
|                 } |                 } | ||||||
| @ -18192,7 +18192,7 @@ class DotnetCoreInstaller { | |||||||
|     } |     } | ||||||
| } | } | ||||||
| exports.DotnetCoreInstaller = DotnetCoreInstaller; | exports.DotnetCoreInstaller = DotnetCoreInstaller; | ||||||
| const DotNetCoreIndexUrl = 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json'; | const DotNetCoreIndexUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json'; | ||||||
|  |  | ||||||
|  |  | ||||||
| /***/ }), | /***/ }), | ||||||
|  | |||||||
							
								
								
									
										1175
									
								
								externals/install-dotnet.ps1
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1175
									
								
								externals/install-dotnet.ps1
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										922
									
								
								externals/install-dotnet.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										922
									
								
								externals/install-dotnet.sh
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -300,4 +300,4 @@ export class DotnetCoreInstaller { | |||||||
| } | } | ||||||
|  |  | ||||||
| const DotNetCoreIndexUrl: string = | const DotNetCoreIndexUrl: string = | ||||||
|   'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json'; |   'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json'; | ||||||
|  | |||||||
| @ -28,7 +28,7 @@ export async function run() { | |||||||
|         (core.getInput('include-prerelease') || 'false').toLowerCase() === |         (core.getInput('include-prerelease') || 'false').toLowerCase() === | ||||||
|         'true'; |         'true'; | ||||||
|       let dotnetInstaller!: installer.DotnetCoreInstaller; |       let dotnetInstaller!: installer.DotnetCoreInstaller; | ||||||
|       for (const version of versions) { |       for (const version of new Set<string>(versions)) { | ||||||
|         dotnetInstaller = new installer.DotnetCoreInstaller( |         dotnetInstaller = new installer.DotnetCoreInstaller( | ||||||
|           version, |           version, | ||||||
|           includePrerelease |           includePrerelease | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	