Use extraction via build mode in autobuild Action when available
This commit is contained in:
parent
e37d0f3e7c
commit
3d49faaabb
15 changed files with 114 additions and 75 deletions
10
lib/autobuild.js
generated
10
lib/autobuild.js
generated
|
|
@ -134,13 +134,19 @@ async function setupCppAutobuild(codeql, logger) {
|
|||
}
|
||||
}
|
||||
exports.setupCppAutobuild = setupCppAutobuild;
|
||||
async function runAutobuild(language, config, logger) {
|
||||
async function runAutobuild(language, config, features, logger) {
|
||||
logger.startGroup(`Attempting to automatically build ${language} code`);
|
||||
const codeQL = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
|
||||
if (language === languages_1.Language.cpp) {
|
||||
await setupCppAutobuild(codeQL, logger);
|
||||
}
|
||||
await codeQL.runAutobuild(language, config.debugMode);
|
||||
if (config.buildMode &&
|
||||
(await features.getValue(feature_flags_1.Feature.AutobuildDirectTracingEnabled, codeQL))) {
|
||||
await codeQL.extractUsingBuildMode(config, language);
|
||||
}
|
||||
else {
|
||||
await codeQL.runAutobuild(language, config.debugMode);
|
||||
}
|
||||
if (language === languages_1.Language.go) {
|
||||
core.exportVariable(environment_1.EnvVar.DID_AUTOBUILD_GOLANG, "true");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue