Skip to content

Commit

Permalink
Add rules_erlang 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HoloRin committed Aug 8, 2022
1 parent 74a94fc commit a104ffa
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 4 deletions.
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",
)
24 changes: 24 additions & 0 deletions modules/rules_erlang/3.2.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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//...'
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": {}
}

0 comments on commit a104ffa

Please sign in to comment.