diff --git a/modules/rules_erlang/3.1.0/presubmit.yml b/modules/rules_erlang/3.1.0/presubmit.yml index ad75b975cdc..fb0f6fc3b51 100644 --- a/modules/rules_erlang/3.1.0/presubmit.yml +++ b/modules/rules_erlang/3.1.0/presubmit.yml @@ -17,8 +17,8 @@ tasks: - | ERLANG_HOME="$(realpath ~/kerl/${ERLANG_VERSION})" cat << EOF >> user.bazelrc - build --//:erlang_version=${ERLANG_VERSION} - build --//:erlang_home=${ERLANG_HOME} + build --@rules_erlang//:erlang_version=${ERLANG_VERSION} + build --@rules_erlang//:erlang_home=${ERLANG_HOME} EOF build_targets: - - '//...' + - '@rules_erlang//...' diff --git a/modules/rules_erlang/3.2.0/MODULE.bazel b/modules/rules_erlang/3.2.0/MODULE.bazel new file mode 100644 index 00000000000..6bc2a6f1262 --- /dev/null +++ b/modules/rules_erlang/3.2.0/MODULE.bazel @@ -0,0 +1,26 @@ +module( + name = "rules_erlang", + version = "3.2.0", + compatibility_level = 3, +) + +bazel_dep( + name = "rules_pkg", + version = "0.5.1", +) + +bazel_dep( + name = "bazel_skylib", + version = "1.2.0", +) + +erlang_package = use_extension( + "//bzlmod:extensions.bzl", + "erlang_package", +) + +use_repo( + erlang_package, + "getopt_src", + "xref_runner_src", +) diff --git a/modules/rules_erlang/3.2.0/presubmit.yml b/modules/rules_erlang/3.2.0/presubmit.yml new file mode 100644 index 00000000000..fb0f6fc3b51 --- /dev/null +++ b/modules/rules_erlang/3.2.0/presubmit.yml @@ -0,0 +1,24 @@ +matrix: + platform: + - ubuntu2004 + - macos +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + environment: + ERLANG_VERSION: "24.3" + shell_commands: + - curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl + - chmod a+x kerl + - ./kerl update releases + - ./kerl build ${ERLANG_VERSION} + - ./kerl install ${ERLANG_VERSION} ~/kerl/${ERLANG_VERSION} + - | + ERLANG_HOME="$(realpath ~/kerl/${ERLANG_VERSION})" + cat << EOF >> user.bazelrc + build --@rules_erlang//:erlang_version=${ERLANG_VERSION} + build --@rules_erlang//:erlang_home=${ERLANG_HOME} + EOF + build_targets: + - '@rules_erlang//...' diff --git a/modules/rules_erlang/3.2.0/source.json b/modules/rules_erlang/3.2.0/source.json new file mode 100644 index 00000000000..191b7e0bbb6 --- /dev/null +++ b/modules/rules_erlang/3.2.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-tHdPZMvQ+d+5JUETcogiSMEpu2Obf2gwhfV7Ysjdmek=", + "strip_prefix": "rules_erlang-3.2.0", + "url": "https://github.com/rabbitmq/rules_erlang/archive/refs/tags/3.2.0.zip" +} diff --git a/modules/rules_erlang/metadata.json b/modules/rules_erlang/metadata.json index 6395935dc62..005e718d5ed 100644 --- a/modules/rules_erlang/metadata.json +++ b/modules/rules_erlang/metadata.json @@ -10,7 +10,8 @@ "versions": [ "2.4.0", "2.5.2", - "3.1.0" + "3.1.0", + "3.2.0" ], "yanked_versions": {} }