diff --git a/modules/nanobind_bazel/2.4.0/MODULE.bazel b/modules/nanobind_bazel/2.4.0/MODULE.bazel new file mode 100644 index 00000000000..275107e6da5 --- /dev/null +++ b/modules/nanobind_bazel/2.4.0/MODULE.bazel @@ -0,0 +1,14 @@ +module( + name = "nanobind_bazel", + version = "2.4.0", + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "rules_python", version = "0.39.0") +bazel_dep(name = "bazel_skylib", version = "1.7.1") + +# Creates a `http_archive` for nanobind and robin-map. +internal_configure = use_extension("//:internal_configure.bzl", "internal_configure_extension") +use_repo(internal_configure, "nanobind", "pypi__typing_extensions") diff --git a/modules/nanobind_bazel/2.4.0/presubmit.yml b/modules/nanobind_bazel/2.4.0/presubmit.yml new file mode 100644 index 00000000000..6ccc858b7d2 --- /dev/null +++ b/modules/nanobind_bazel/2.4.0/presubmit.yml @@ -0,0 +1,29 @@ +matrix: + bazel: + - 7.x + - 8.x + unix_platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + win_platform: + - windows + +tasks: + unix_test: + name: Verify build targets on Unix + platform: ${{ unix_platform }} + bazel: ${{ bazel }} + build_targets: + - '@nanobind_bazel//:nanobind' + build_flags: + - --cxxopt=-std=c++17 + windows_test: + name: Verify build targets + platform: ${{ win_platform }} + bazel: ${{ bazel }} + build_targets: + - '@nanobind_bazel//:nanobind' + build_flags: + - --cxxopt=/std:c++17 diff --git a/modules/nanobind_bazel/2.4.0/source.json b/modules/nanobind_bazel/2.4.0/source.json new file mode 100644 index 00000000000..99959e6cc4e --- /dev/null +++ b/modules/nanobind_bazel/2.4.0/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://github.com/nicholasjng/nanobind-bazel/releases/download/v2.4.0/nanobind-bazel-2.4.0.tar.gz", + "integrity": "sha256-amllQykgsNtqkrfCfQaLQqDDU//SFa6lFYb6ZTls6ao=", + "strip_prefix": "nanobind-bazel-2.4.0" +} diff --git a/modules/nanobind_bazel/metadata.json b/modules/nanobind_bazel/metadata.json index 5be4966a0c7..21ee298e186 100644 --- a/modules/nanobind_bazel/metadata.json +++ b/modules/nanobind_bazel/metadata.json @@ -14,7 +14,8 @@ "1.0.0", "2.0.0", "2.1.0", - "2.2.0" + "2.2.0", + "2.4.0" ], "yanked_versions": {} }