From 81bd46e8cf211b44a523ea0fd635f382b0e283d7 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Thu, 1 Aug 2024 14:17:29 +0200 Subject: [PATCH 1/2] Add Publish to BCR setup --- .bcr/metadata.template.json | 23 +++++++++++++++++++++++ .bcr/presubmit.yml | 12 ++++++++++++ .bcr/source.template.json | 5 +++++ 3 files changed, 40 insertions(+) create mode 100644 .bcr/metadata.template.json create mode 100644 .bcr/presubmit.yml create mode 100644 .bcr/source.template.json diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 00000000..b2bd07b3 --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,23 @@ +{ + "homepage": "https://github.com/bazel-contrib/toolchains_llvm", + "maintainers": [ + { + "email": "fabian@meumertzhe.im", + "github": "fmeum", + "name": "Fabian Meumertzheim" + }, + { + "email": "james.sharpe@zenotech.com", + "github": "jsharpe", + "name": "James Sharpe" + }, + { + "email": "rrbutani@users.noreply.github.com", + "github": "rrbutani", + "name": "Rahul Butani" + }, + ], + "repository": ["github:bazel-contrib/toolchains_llvm"], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 00000000..7af34cbd --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "tests" + matrix: + platform: ["debian10", "macos", "macos_arm64", "ubuntu2004"] + bazel: ["6.x", "7.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 00000000..6df47bdd --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "**leave this alone**", + "strip_prefix": "{REPO}-{VERSION}", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/toolchains_llvm-{TAG}.tar.gz" +} From 3c2d969d1be63c748a08c33cfd6a3bf387e90b2b Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Thu, 1 Aug 2024 14:20:27 +0200 Subject: [PATCH 2/2] Update presubmit.yml --- .bcr/metadata.template.json | 2 +- .bcr/presubmit.yml | 27 ++++++++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json index b2bd07b3..af544fec 100644 --- a/.bcr/metadata.template.json +++ b/.bcr/metadata.template.json @@ -15,7 +15,7 @@ "email": "rrbutani@users.noreply.github.com", "github": "rrbutani", "name": "Rahul Butani" - }, + } ], "repository": ["github:bazel-contrib/toolchains_llvm"], "versions": [], diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml index 7af34cbd..7bd7658f 100644 --- a/.bcr/presubmit.yml +++ b/.bcr/presubmit.yml @@ -1,12 +1,25 @@ +matrix: + bazel: [7.x] + platform: [ubuntu2004, macos, macos_arm64] +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - "@toolchains_llvm//toolchain:all" + - "@toolchains_llvm//platforms:all" bcr_test_module: - module_path: "tests" + module_path: tests matrix: - platform: ["debian10", "macos", "macos_arm64", "ubuntu2004"] - bazel: ["6.x", "7.x"] + bazel: [7.x] + platform: [ubuntu2004, macos, macos_arm64] tasks: - run_tests: - name: "Run test module" - platform: ${{ platform }} + run_test_module: + name: Run test module bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - //:all test_targets: - - "//..." + - //:all