diff --git a/.github/workflows/cpu_linux_x86_64_linux_aarch64_build.yaml b/.github/workflows/cpu_linux_x86_64_linux_aarch64_build.yaml index 31eeddb6..5df2f13f 100644 --- a/.github/workflows/cpu_linux_x86_64_linux_aarch64_build.yaml +++ b/.github/workflows/cpu_linux_x86_64_linux_aarch64_build.yaml @@ -60,9 +60,85 @@ jobs: --platforms=//common:linux_aarch64 \ //cc/tests/cpu:all + - name: "Clang 18, Glibc 2.27, libc++ static linking | Testing..." + run: | + bazel build --color=yes \ + --platforms=//common:linux_aarch64 \ + --@rules_ml_toolchain//common:stdlib=libc++ \ + --@rules_ml_toolchain//common:static_libcxx=true \ + //cc/tests/cpu:all + - name: "Bzlmod. Clang 18, Glibc 2.27 | Testing..." run: | bazel build --color=yes \ --platforms=//common:linux_aarch64 \ --config=bzlmod \ //cc/tests/cpu:all + + - name: "Bzlmod. Clang 18, Glibc 2.27, libc++ static linking | Testing..." + run: | + bazel build --color=yes \ + --platforms=//common:linux_aarch64 \ + --@rules_ml_toolchain//common:stdlib=libc++ \ + --@rules_ml_toolchain//common:static_libcxx=true \ + --config=bzlmod \ + //cc/tests/cpu:all + + - name: "Clang 21, Glibc 2.31 | Testing..." + run: | + bazel build --color=yes \ + --platforms=//common:linux_aarch64 \ + --repo_env=LLVM_VERSION=21 \ + --repo_env=SYSROOT_DIST=linux_glibc_2_31 \ + //cc/tests/cpu:all + + - name: "Bzlmod. Clang 21, Glibc 2.31 | Testing..." + run: | + bazel build --color=yes \ + --platforms=//common:linux_aarch64 \ + --repo_env=LLVM_VERSION=21 \ + --repo_env=SYSROOT_DIST=linux_glibc_2_31 \ + --config=bzlmod \ + //cc/tests/cpu:all + + # TODO: Replace `build` to `test` and run //cc/tests/cpu:all when GitHub runners will be updated to Ubuntu 24 + - name: "Bzlmod. Clang 22, Glibc 2.31 | Testing..." + run: | + bazel build --color=yes \ + --platforms=//common:linux_aarch64 \ + --repo_env=LLVM_VERSION=22 \ + --repo_env=SYSROOT_DIST=linux_glibc_2_31 \ + --config=bzlmod \ + //cc/tests/cpu:all + + - name: "Clang 21, Glibc 2.31, libc++ static linking | Testing..." + run: | + bazel build --color=yes \ + --platforms=//common:linux_aarch64 \ + --repo_env=LLVM_VERSION=21 \ + --repo_env=SYSROOT_DIST=linux_glibc_2_31 \ + --@rules_ml_toolchain//common:stdlib=libc++ \ + --@rules_ml_toolchain//common:static_libcxx=true \ + //cc/tests/cpu:all + + # TODO: Replace `build` to `test` and run //cc/tests/cpu:all when GitHub runners will be updated to Ubuntu 24 + - name: "Clang 22, Glibc 2.31, libc++ static linking | Testing..." + run: | + bazel build --color=yes \ + --platforms=//common:linux_aarch64 \ + --repo_env=LLVM_VERSION=22 \ + --repo_env=SYSROOT_DIST=linux_glibc_2_31 \ + --@rules_ml_toolchain//common:stdlib=libc++ \ + --@rules_ml_toolchain//common:static_libcxx=true \ + //cc/tests/cpu:all + + - name: "Bzlmod. Clang 22, Glibc 2.31, libc++ static linking | Testing..." + run: | + bazel build --color=yes \ + --platforms=//common:linux_aarch64 \ + --repo_env=LLVM_VERSION=22 \ + --repo_env=SYSROOT_DIST=linux_glibc_2_31 \ + --@rules_ml_toolchain//common:stdlib=libc++ \ + --@rules_ml_toolchain//common:static_libcxx=true \ + --config=bzlmod \ + //cc/tests/cpu:all diff --git a/README.md b/README.md index 19c12752..4fd99078 100644 --- a/README.md +++ b/README.md @@ -135,16 +135,15 @@ When the executor and the target are the same, a non-hermetic GPU build can stil For details, look at the `.bazelrc` file, specifically the `cuda_clang_local` configuration. - #### Build for Linux aarch64 `bazel build //cc/tests/cpu/... --platforms=//common:linux_aarch64` - +