From 512fd4a492c7f32ed0619f7eb02c5b0bce0c45ca Mon Sep 17 00:00:00 2001 From: Nikola Radakovic Date: Mon, 23 Mar 2026 08:36:59 +0000 Subject: [PATCH] Bump module version to 0.4.0 Bump module version to 0.4.0 with small test script changes. --- .github/workflows/aarch64-ebclfsa.yml | 2 +- MODULE.bazel | 2 +- examples/.bazelrc | 6 ++-- examples/MODULE.bazel | 11 +------ examples/test.sh | 42 +++++++++++++++++++++------ 5 files changed, 39 insertions(+), 24 deletions(-) diff --git a/.github/workflows/aarch64-ebclfsa.yml b/.github/workflows/aarch64-ebclfsa.yml index f73c201..55d261a 100644 --- a/.github/workflows/aarch64-ebclfsa.yml +++ b/.github/workflows/aarch64-ebclfsa.yml @@ -38,4 +38,4 @@ jobs: cache-save: ${{ github.event_name == 'push' }} - name: Bazel Build (basic) run: | - bazel build --config aarch64-ebclfsa -- //:main_cpp + bazel build --config target_config_5 -- //:main_cpp diff --git a/MODULE.bazel b/MODULE.bazel index ee95ffe..e33aa42 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -13,7 +13,7 @@ module( name = "score_bazel_cpp_toolchains", - version = "0.3.1", + version = "0.4.0", compatibility_level = 0, ) diff --git a/examples/.bazelrc b/examples/.bazelrc index fb8c9a7..e81807c 100644 --- a/examples/.bazelrc +++ b/examples/.bazelrc @@ -72,6 +72,6 @@ build:target_config_4 --extra_toolchains=@score_autosd_10_toolchain//:x86_64-lin # ------------------------------------------------------------------------------- # Config dedicated to target platform CPU:aarch64 and OS:ebclfsa # ------------------------------------------------------------------------------- -build:aarch64-ebclfsa --config=shared -build:aarch64-ebclfsa --platforms=@score_bazel_platforms//:aarch64-linux-sdk_0.1.0-ebclfsa -build:aarch64-ebclfsa --extra_toolchains=@score_ebclfsa_toolchain//:aarch64-linux-sdk_0.1.0-ebclfsa +build:target_config_5 --config=shared +build:target_config_5 --platforms=@score_bazel_platforms//:aarch64-linux-sdk_0.1.0-ebclfsa +build:target_config_5 --extra_toolchains=@score_ebclfsa_toolchain//:aarch64-linux-sdk_0.1.0-ebclfsa diff --git a/examples/MODULE.bazel b/examples/MODULE.bazel index 6d6ecc3..84a8aca 100644 --- a/examples/MODULE.bazel +++ b/examples/MODULE.bazel @@ -38,7 +38,7 @@ bazel_dep(name = "googletest", version = "1.17.0") # ******************************************************************************* bazel_dep( name = "score_bazel_cpp_toolchains", - version = "0.3.0", + version = "0.4.0", ) local_path_override( module_name = "score_bazel_cpp_toolchains", @@ -166,12 +166,3 @@ use_repo( "score_qcc_arm_toolchain", "score_qcc_toolchain", ) - -# register_toolchains( -# "@score_gcc_toolchain//:x86_64-linux-gcc_12.2.0", -# "@my_toolchain//:x86_64-linux-gcc_12.2.0", -# "@score_qcc_toolchain//:x86_64-qnx-sdp_8.0.0", -# "@score_qcc_arm_toolchain//:aarch64-qnx-sdp_8.0.0", -# "@score_aarch64_gcc_toolchain//:aarch64-linux-gcc_12.2.0", -# "@score_autosd_10_toolchain//:x86_64-linux-autosd10", -# ) diff --git a/examples/test.sh b/examples/test.sh index 3050a5a..3110eeb 100755 --- a/examples/test.sh +++ b/examples/test.sh @@ -13,27 +13,51 @@ # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -echo -e "Testing 'host_config_1' ..." +echo -e "***********************************************************************************" +echo -e "Testing toolchain for x86_64 Linux as '\e[93mhost_config_1\e[39m' ..." +echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix\e[39m" +echo -e "Toolchain: \e[93m@score_gcc_toolchain//:x86_64-linux-gcc_12.2.0\e[39m" bazel test --config host_config_1 //:math_lib_test bazel clean --expunge -echo -e "Testing 'host_config_2' ..." +echo -e "***********************************************************************************" +echo -e "Testing toolchain for x86_64 Linux as '\e[93mhost_config_2\e[39m' ..." +echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix\e[39m" +echo -e "Toolchain: \e[93m@my_toolchain//:x86_64-linux-gcc_12.2.0\e[39m" bazel test --config host_config_2 //:math_lib_test bazel clean --expunge -echo -e "Testing 'host_config_3' ..." +echo -e "***********************************************************************************" +echo -e "Testing toolchain for x86_64 Linux as '\e[93mhost_config_3\e[39m' ..." +echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-linux\e[39m" +echo -e "Toolchain: \e[93m@score_gcc_toolchain_bp//:x86_64-linux\e[39m" bazel test --config host_config_3 //:math_lib_test bazel clean --expunge -echo -e "Testing 'target_config_1' ..." +echo -e "***********************************************************************************" +echo -e "Testing toolchain for x86_64 QNX as '\e[93mtarget_config_1\e[39m' ..." +echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-qnx-sdp_8.0.0-posix\e[39m" +echo -e "Toolchain: \e[93m@score_qcc_toolchain//:x86_64-qnx-sdp_8.0.0\e[39m" bazel build --config target_config_1 //:main_cpp bazel clean --expunge -echo -e "Testing 'target_config_2' ..." +echo -e "***********************************************************************************" +echo -e "Testing toolchain for Aarch64 QNX as '\e[93mtarget_config_2\e[39m' ..." +echo -e "Platform: \e[93m@score_bazel_platforms//:aarch64-qnx-sdp_8.0.0-posix\e[39m" +echo -e "Toolchain: \e[93m@score_qcc_arm_toolchain//:aarch64-qnx-sdp_8.0.0\e[39m" bazel build --config target_config_2 //:main_cpp bazel clean --expunge -echo -e "Testing 'target_config_3' ..." +echo -e "***********************************************************************************" +echo -e "Testing toolchain for Aarch64 Linux as '\e[93mtarget_config_3\e[39m' ..." +echo -e "Platform: \e[93m@score_bazel_platforms//:aarch64-linux-gcc_12.2.0-posix\e[39m" +echo -e "Toolchain: \e[93m@score_aarch64_gcc_toolchain//:aarch64-linux-gcc_12.2.0\e[39m" bazel build --config target_config_3 //:main_cpp bazel clean --expunge -echo -e "Testing 'target_config_4' ..." +echo -e "***********************************************************************************" +echo -e "Testing toolchain for x86_64 Linux (flavor: \e[93mautosd10) as '\e[93mtarget_config_4\e[39m' ..." +echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-linux-autosd10\e[39m" +echo -e "Toolchain: \e[93m@score_autosd_10_toolchain//:x86_64-linux-autosd10\e[39m" bazel build --config target_config_4 //:main_cpp bazel clean --expunge -echo -e "Testing 'aarch64-ebclfsa' ..." -bazel build --config aarch64-ebclfsa //:main_cpp +echo -e "***********************************************************************************" +echo -e "Testing toolchain for Aarch64 Linux (flavor: \e[93mebclfsa) as '\e[93mtarget_config_5\e[39m' ..." +echo -e "Platform: \e[93m@score_bazel_platforms//:aarch64-linux-sdk_0.1.0-ebclfsa\e[39m" +echo -e "Toolchain: \e[93m@score_ebclfsa_toolchain//:aarch64-linux-sdk_0.1.0-ebclfsa\e[39m" +bazel build --config target_config_5 //:main_cpp bazel clean --expunge