Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rules_erlang 3.2.0 #101

Closed
wants to merge 9 commits into from
6 changes: 3 additions & 3 deletions modules/rules_erlang/3.1.0/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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//...'
26 changes: 26 additions & 0 deletions modules/rules_erlang/3.2.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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",
)
29 changes: 29 additions & 0 deletions modules/rules_erlang/3.2.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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 >> .bazelrc
build --@rules_erlang//:erlang_version=${ERLANG_VERSION}
build --@rules_erlang//:erlang_home=${ERLANG_HOME}
EOF
build_flags:
- --incompatible_strict_action_env
- --extra_toolchains=@rules_erlang//:erlang_toolchain_external
- --platforms=@rules_erlang//platforms:erlang_external_platform
- --extra_execution_platforms=@rules_erlang//platforms:erlang_external_platform
build_targets:
pjk25 marked this conversation as resolved.
Show resolved Hide resolved
- '@rules_erlang//...'
5 changes: 5 additions & 0 deletions modules/rules_erlang/3.2.0/source.json
Original file line number Diff line number Diff line change
@@ -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"
}
3 changes: 2 additions & 1 deletion modules/rules_erlang/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"versions": [
"2.4.0",
"2.5.2",
"3.1.0"
"3.1.0",
"3.2.0"
],
"yanked_versions": {}
}