skip osx-x86 - fixes #2
This commit is contained in:
parent
af335bce0a
commit
88fac420cb
@ -7,7 +7,11 @@ import path from 'path';
|
||||
import { upload } from './cloud.js';
|
||||
import { version } from '../package.json';
|
||||
|
||||
function isBrokenBuild (nodeVersion, targetArch) {
|
||||
function dontBuild (nodeVersion, targetArch) {
|
||||
// https://support.apple.com/en-us/HT201948
|
||||
if (hostPlatform === 'osx' &&
|
||||
targetArch === 'x86') return true;
|
||||
// official node 0.12 does not compile on arm
|
||||
if (/^v?0/.test(nodeVersion) &&
|
||||
/^arm/.test(targetArch)) return true;
|
||||
return false;
|
||||
@ -20,7 +24,7 @@ export async function main () {
|
||||
|
||||
for (const nodeVersion in patchesJson) {
|
||||
for (const targetArch of targetArchs) {
|
||||
if (isBrokenBuild(nodeVersion, targetArch)) continue;
|
||||
if (dontBuild(nodeVersion, targetArch)) continue;
|
||||
const local = localPlace({ from: 'built', arch: targetArch,
|
||||
nodeVersion, platform: hostPlatform, version });
|
||||
const short = path.basename(local);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user