Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/codeql.yml
diff options
context:
space:
mode:
authorLeitwolf112026-11-12 07:46:46 +0300
committerLeitwolf112026-11-12 07:46:46 +0300
commit3bffdc1d747a73ff83fab83f1a51b53c0ab507d9 (patch)
tree7bf8f8b6faa18f8df25af263e22f3c2346d3bba3 /.github/workflows/codeql.yml
parentf7545228848e250856b9cdf2cf92538dfda0eb4f (diff)
downloadtazel-3bffdc1d747a73ff83fab83f1a51b53c0ab507d9.tar.gz
Read MODULE.kts and BUILD.kts, and resolve labelsfeature/labels-and-project-files
Tazel now reads the project files of the accepted DSL: - Labels: //:x for the root BUILD.kts, //dir/:x for dir/BUILD.kts, :x for the same file, @name//:x for a dependency, and the patterns //dir/... and //... . The //dir shorthand is refused with a hint. - MODULE.kts: module (name, SemVer version, description, authors, license), dependencies (implementation, testImplementation, localImplementation, localTestImplementation, with alias), viget (push, pushTarget, exclude), cache and execution. Duplicate dependency names, a push without version, description or author, and a pushTarget in a private BUILD.kts are errors. - BUILD.kts: isPublic per file and c, cpp, objc, objcpp and zig targets, each with bin, staticlib, sharedlib and test. The scopes carry type markers of their language and kind, so a setting that one does not have (exports on a bin, args on a staticlib, a C standard on C++, arc on C, compiler on Zig, test settings on a bin, bundle on C++) is a compile error at its line in the project file. - A target block runs for each triple and build mode it is built for; OS and ARCH come from the LLVM triple, BUILD_MODE from the command. Its depends are resolved: libraries only, visibility through isPublic, test dependencies for test targets only, paths kept inside the module. - Directories starting with a dot and nested modules are not packages; file names are compared case-sensitively. The tests load a reference module that uses every setting of the DSL and configure each of its eleven targets for each triple and mode.
Diffstat (limited to '.github/workflows/codeql.yml')
0 files changed, 0 insertions, 0 deletions