MCPcopy Index your code
hub / github.com/actions/setup-python / findAssetForMacOrLinux

Function findAssetForMacOrLinux

src/install-pypy.ts:276–285  ·  view source on GitHub ↗
(
  releases: any,
  architecture: string,
  platform: string
)

Source from the content-addressed store, hash-verified

274}
275
276export function findAssetForMacOrLinux(
277 releases: any,
278 architecture: string,
279 platform: string
280) {
281 architecture = pypyArchitecture(architecture);
282 return releases.files.find(
283 (item: any) => item.arch === architecture && item.platform === platform
284 );
285}
286
287function pypyArchitecture(architecture: string): string {
288 if (IS_WINDOWS && architecture === 'x32') {

Callers 1

findReleaseFunction · 0.85

Calls 1

pypyArchitectureFunction · 0.85

Tested by

no test coverage detected