mirror of
				https://kkgithub.com/actions/setup-python.git
				synced 2025-11-04 12:44:05 +08:00 
			
		
		
		
	feat: Add 'IS_MAC' util
This commit is contained in:
		@ -7,7 +7,8 @@ import fs from 'fs';
 | 
			
		||||
import {getCacheDistributor} from './cache-distributions/cache-factory';
 | 
			
		||||
import {
 | 
			
		||||
  isCacheFeatureAvailable,
 | 
			
		||||
  logWarning
 | 
			
		||||
  logWarning,
 | 
			
		||||
  IS_MAC
 | 
			
		||||
} from './utils';
 | 
			
		||||
 | 
			
		||||
function isPyPyVersion(versionSpec: string) {
 | 
			
		||||
 | 
			
		||||
@ -7,6 +7,7 @@ import * as exec from '@actions/exec';
 | 
			
		||||
 | 
			
		||||
export const IS_WINDOWS = process.platform === 'win32';
 | 
			
		||||
export const IS_LINUX = process.platform === 'linux';
 | 
			
		||||
export const IS_MAC = process.platform === 'darwin';
 | 
			
		||||
export const WINDOWS_ARCHS = ['x86', 'x64'];
 | 
			
		||||
export const WINDOWS_PLATFORMS = ['win32', 'win64'];
 | 
			
		||||
const PYPY_VERSION_FILE = 'PYPY_VERSION';
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user