From e4f8c4c569d8d2915d1cbe84e760b7597749535f Mon Sep 17 00:00:00 2001 From: yuyawk Date: Wed, 10 Apr 2024 22:16:05 +0900 Subject: [PATCH] ci: publish-to-bcr --- .bcr/config.yml | 1 + .bcr/metadata.template.json | 15 +++++++++++++++ .bcr/presubmit.yml | 19 +++++++++++++++++++ .bcr/source.template.json | 5 +++++ 4 files changed, 40 insertions(+) create mode 100644 .bcr/config.yml create mode 100644 .bcr/metadata.template.json create mode 100644 .bcr/presubmit.yml create mode 100644 .bcr/source.template.json diff --git a/.bcr/config.yml b/.bcr/config.yml new file mode 100644 index 0000000..ed97d53 --- /dev/null +++ b/.bcr/config.yml @@ -0,0 +1 @@ +--- diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000..653ab71 --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,15 @@ +{ + "homepage": "https://github.com/yuyawk/rules_build_error", + "maintainers": [ + { + "name": "yuyawk", + "email": "h1gh5peedne6ula@gmail.com", + "github": "yuyawk" + } + ], + "repository": [ + "github:yuyawk/rules_build_error" + ], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 0000000..c783686 --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,19 @@ +--- +bcr_test_module: + module_path: "examples" + matrix: + platform: + - "debian10" + - "macos" + - "ubuntu2004" + - "windows" + bazel: + - "6.x" + - "7.x" + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "//..." diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000..2037471 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz" +}