diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f85f6a7..be83ce8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,16 +1,22 @@ schedules: -- cron: "0 13 * * *" +- cron: "0 8 * * *" displayName: "Daily Build 1" always: true branches: include: - master -- cron: "0 19 * * *" +- cron: "0 13 * * *" displayName: "Daily Build 2" always: true branches: include: - master +- cron: "0 19 * * *" + displayName: "Daily Build 3" + always: true + branches: + include: + - master jobs: - job: BaseBuild timeoutInMinutes: 180 diff --git a/tasks/build.ts b/tasks/build.ts index 5fbd460..17a8ec3 100644 --- a/tasks/build.ts +++ b/tasks/build.ts @@ -4,6 +4,7 @@ import { runDockerBuild } from './docker' import { getTarget, targetsEqual, NexeTarget } from '../lib/target' import { pathExistsAsync, readFileAsync, execFileAsync, semverGt } from '../lib/util' import got = require('got') +import { cpus } from 'os'; const env = process.env, isPullRequest = env.BUILD_REASON === 'PullRequest', @@ -60,6 +61,7 @@ async function build() { build: true, verbose: Boolean(env.NEXE_VERBOSE!), target, + make: ['-j' + cpus().length], output } console.log('Building: ' + target + ' on ' + buildHost)