mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/setup-python
				synced 2025-10-31 16:11:09 +08:00 
			
		
		
		
	feat: Add 'IS_MAC' util
This commit is contained in:
		
							parent
							
								
									9f1915a970
								
							
						
					
					
						commit
						467a981225
					
				
							
								
								
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -65430,6 +65430,7 @@ const semver = __importStar(__nccwpck_require__(1383)); | |||||||
| const exec = __importStar(__nccwpck_require__(1514)); | const exec = __importStar(__nccwpck_require__(1514)); | ||||||
| exports.IS_WINDOWS = process.platform === 'win32'; | exports.IS_WINDOWS = process.platform === 'win32'; | ||||||
| exports.IS_LINUX = process.platform === 'linux'; | exports.IS_LINUX = process.platform === 'linux'; | ||||||
|  | exports.IS_MAC = process.platform === 'darwin'; | ||||||
| exports.WINDOWS_ARCHS = ['x86', 'x64']; | exports.WINDOWS_ARCHS = ['x86', 'x64']; | ||||||
| exports.WINDOWS_PLATFORMS = ['win32', 'win64']; | exports.WINDOWS_PLATFORMS = ['win32', 'win64']; | ||||||
| const PYPY_VERSION_FILE = 'PYPY_VERSION'; | const PYPY_VERSION_FILE = 'PYPY_VERSION'; | ||||||
| @ -65761,4 +65762,4 @@ module.exports = JSON.parse('["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac", | |||||||
| /******/ 	module.exports = __webpack_exports__; | /******/ 	module.exports = __webpack_exports__; | ||||||
| /******/ 	 | /******/ 	 | ||||||
| /******/ })() | /******/ })() | ||||||
| ; | ; | ||||||
|  | |||||||
| @ -7,7 +7,8 @@ import fs from 'fs'; | |||||||
| import {getCacheDistributor} from './cache-distributions/cache-factory'; | import {getCacheDistributor} from './cache-distributions/cache-factory'; | ||||||
| import { | import { | ||||||
|   isCacheFeatureAvailable, |   isCacheFeatureAvailable, | ||||||
|   logWarning |   logWarning, | ||||||
|  |   IS_MAC | ||||||
| } from './utils'; | } from './utils'; | ||||||
| 
 | 
 | ||||||
| function isPyPyVersion(versionSpec: string) { | function isPyPyVersion(versionSpec: string) { | ||||||
|  | |||||||
| @ -7,6 +7,7 @@ import * as exec from '@actions/exec'; | |||||||
| 
 | 
 | ||||||
| export const IS_WINDOWS = process.platform === 'win32'; | export const IS_WINDOWS = process.platform === 'win32'; | ||||||
| export const IS_LINUX = process.platform === 'linux'; | export const IS_LINUX = process.platform === 'linux'; | ||||||
|  | export const IS_MAC = process.platform === 'darwin'; | ||||||
| export const WINDOWS_ARCHS = ['x86', 'x64']; | export const WINDOWS_ARCHS = ['x86', 'x64']; | ||||||
| export const WINDOWS_PLATFORMS = ['win32', 'win64']; | export const WINDOWS_PLATFORMS = ['win32', 'win64']; | ||||||
| const PYPY_VERSION_FILE = 'PYPY_VERSION'; | const PYPY_VERSION_FILE = 'PYPY_VERSION'; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Leon Wright
						Leon Wright