build: adopt baselibs-style toolchain settings#5
Open
FScholPer wants to merge 5 commits into
Open
Conversation
Aligns .bazelrc and MODULE.bazel with the toolchain configuration used in eclipse-score/baselibs so that code compiles with the correct S-CORE certified toolchains. MODULE.bazel changes: - Add score_bazel_cpp_toolchains GCC extension: declares score_gcc_x86_64_toolchain (x86_64/Linux, GCC 12.2.0) and score_gcc_aarch64_toolchain - Add score_toolchains_rust 0.8.0 (Ferrocene Rust toolchain) - Add platforms + score_bazel_platforms dependencies - Upgrade score_docs_as_code to 2.0.3 (compat level 2, required by transitive score_process dependency) - Align rules_python, rules_rust, rules_cc, googletest, score_tooling, aspect_rules_lint, buildifier_prebuilt to the versions actually resolved by the dependency graph .bazelrc changes: - Add HTTP retry/timeout settings matching baselibs - Register GCC x86_64 + Ferrocene as common extra toolchains for host - Add _bl_stub config (baselibs flags: nlohmann JSON backend, use_typedshmd=False, warning features) - Add _bl_toolchain_common config (incompatible_strict_action_env, host_platform=x86_64-linux) - Add bl-x86_64-linux named config targeting score_bazel_platforms x86_64-linux-gcc_12.2.0-posix Build command: bazel build --config=bl-x86_64-linux //score/... Verified: 19 targets, 77 actions, Build completed successfully.
License Check Results🚀 The license check job ran with the Bazel command: bazel run //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
- add pre-commit configuration and shared tools/run_tool.sh wrapper - import missing local link-check action from docs-as-code - fix gitlint workflow/action metadata for actionlint compatibility - refresh MODULE/MODULE.lock after tidy and extension resolution - apply auto-fixes produced by repository hooks (copyright/eof)
Contributor
Author
|
Pushed follow-up commit to make the branch pre-commit clean. What was added/fixed:
|
Contributor
Author
|
Pushed follow-up commit c909c5f to make this branch pre-commit clean. |
Add a minimal GitHub Actions workflow aligned with baselibs that builds the repository with --config=bl-x86_64-linux on PRs, main pushes, and merge groups.
Contributor
Author
|
Added a basic Linux build workflow in this PR:
It is aligned with baselibs style and now compiles the project in CI using:
Triggers:
I also ran actionlint locally for this workflow and it passes. |
Include //score/... only when score/ contains Bazel packages, so CI works both before and after migration to baselibs-like source layout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Aligns
.bazelrcandMODULE.bazelwith the build configuration used in eclipse-score/baselibs so that code compiles with the correct S-CORE certified toolchains (GCC 12.2.0 / Ferrocene Rust).Changes
MODULE.bazelscore_bazel_cpp_toolchainsGCC extension — declaresscore_gcc_x86_64_toolchain(x86_64/Linux, GCC 12.2.0) andscore_gcc_aarch64_toolchainscore_toolchains_rust 0.8.0(Ferrocene Rust toolchain)platforms+score_bazel_platformsdependenciesscore_docs_as_codeto 2.0.3 (compatibility level 2, required by transitivescore_processdependency — fixesERROR: [email protected] depends on [email protected] with compatibility level 2)rules_python,rules_rust,rules_cc,googletest,score_tooling,aspect_rules_lint,buildifier_prebuiltto versions actually resolved by the dependency graph (removes all--check_direct_dependencieswarnings).bazelrchttp_connector_attempts,http_timeout_scaling)_bl_stubconfig: baselibs required flags (nlohmannJSON backend,use_typedshmd=False, warning features)_bl_toolchain_commonconfig:incompatible_strict_action_env,host_platform=@score_bazel_platforms//:x86_64-linuxbl-x86_64-linuxnamed build config targetingx86_64-linux-gcc_12.2.0-posixVerified
Related
Frank Scholter Peres [email protected], Mercedes-Benz Tech Innovation GmbH
Provider Information