Prepare action for public rust support
This commit is contained in:
parent
466d6ce584
commit
de1f97ca1d
3 changed files with 9 additions and 5 deletions
5
lib/init-action.js
generated
5
lib/init-action.js
generated
|
|
@ -351,8 +351,9 @@ async function run() {
|
|||
logger.info(`Setting C++ build-mode: none to ${value}`);
|
||||
core.exportVariable(bmnVar, value);
|
||||
}
|
||||
// Set CODEQL_ENABLE_EXPERIMENTAL_FEATURES for rust
|
||||
if (config.languages.includes(languages_1.Language.rust)) {
|
||||
// For rust: set CODEQL_ENABLE_EXPERIMENTAL_FEATURE, unless codeql already supports rust without it
|
||||
if (config.languages.includes(languages_1.Language.rust) &&
|
||||
!(await codeql.resolveLanguages()).rust) {
|
||||
const feat = feature_flags_1.Feature.RustAnalysis;
|
||||
const minVer = feature_flags_1.featureConfig[feat].minimumVersion;
|
||||
const envVar = "CODEQL_ENABLE_EXPERIMENTAL_FEATURES";
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue