mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 07:45:06 +00:00
ebb518186d
Integrates Github Actions which is much much faster than AppVeyor in all areas, and even supports multiple workflows instead of forcing everything into just one workflow like AppVeyor does. Plus we get 20 parallel builds that nearly instantly finish, which results in much faster feedback without having to run our own Jenkins CI. The builder and packager scripts have been adjusted to add support for both Windows and Linux, and both AppVeyor and Github Actions. Additionally to that, the builder script now correctly executes x32 and x64 steps in a chain, instead of waiting for the other architecture to finish first. This further reduces build times.
63 lines
1.3 KiB
JavaScript
63 lines
1.3 KiB
JavaScript
"use strict";
|
|
|
|
const process = require('process');
|
|
const runner = require('./runner.js');
|
|
|
|
function runRunners(runnerArray, name) {
|
|
return new Promise(async (resolve, reject) => {
|
|
let local = runnerArray.reverse();
|
|
while (local.length > 0) {
|
|
let task = local.pop();
|
|
let work = new runner(name, task[0], task[1], task[2]);
|
|
await work.run();
|
|
}
|
|
resolve(0);
|
|
});
|
|
}
|
|
|
|
let env = process.env;
|
|
let steps = [];
|
|
|
|
if ((process.env.CMAKE_GENERATOR_64 !== undefined) && (process.env.CMAKE_GENERATOR_64 !== "")) {
|
|
steps.push(
|
|
[ 'cmake', [
|
|
'--build', 'build/64',
|
|
'--config', 'RelWithDebInfo',
|
|
'--target', 'PACKAGE_7Z'
|
|
], env ]
|
|
);
|
|
steps.push(
|
|
[ 'cmake', [
|
|
'--build', 'build/64',
|
|
'--config', 'RelWithDebInfo',
|
|
'--target', 'PACKAGE_ZIP'
|
|
], env ]
|
|
);
|
|
} else if ((process.env.CMAKE_GENERATOR_32 !== undefined) && (process.env.CMAKE_GENERATOR_32 !== "")) {
|
|
steps.push(
|
|
[ 'cmake', [
|
|
'--build', 'build/32',
|
|
'--config', 'RelWithDebInfo',
|
|
'--target', 'PACKAGE_7Z'
|
|
], env ]
|
|
);
|
|
steps.push(
|
|
[ 'cmake', [
|
|
'--build', 'build/32',
|
|
'--config', 'RelWithDebInfo',
|
|
'--target', 'PACKAGE_ZIP'
|
|
], env ]
|
|
);
|
|
}
|
|
|
|
let promises = [];
|
|
promises.push(runRunners(steps, "32-Bit"));
|
|
Promise.all(promises).then(
|
|
res => {
|
|
process.exit(0);
|
|
},
|
|
err => {
|
|
console.log(err);
|
|
process.exit(1);
|
|
}
|
|
)
|