-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release: https://github.com/chickenandpork/rules_synology/releases/tag/v0.2.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ --------- Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Co-authored-by: Allan Clark <[email protected]>
- Loading branch information
1 parent
0729f89
commit b6c265c
Showing
5 changed files
with
105 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
module( | ||
name = "rules_synology", | ||
version = "0.2.0", | ||
) | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "2.10.0") | ||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
bazel_dep(name = "gazelle", version = "0.40.0") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
bazel_dep(name = "rules_cc", version = "0.1.0") | ||
bazel_dep(name = "rules_go", version = "0.51.0") | ||
bazel_dep(name = "rules_jvm_external", version = "6.6") # https://github.com/bazelbuild/stardoc/issues/257#issuecomment-2461324992 | ||
bazel_dep(name = "rules_pkg", version = "1.0.1") | ||
bazel_dep(name = "rules_shellcheck", version = "0.3.3", repo_name = "com_github_aignas_rules_shellcheck") | ||
bazel_dep(name = "stardoc", version = "0.7.2") # remove redundant rules_jvm_external when 0.7.2 or greater | ||
|
||
bazel_dep(name = "buildifier_prebuilt", version = "7.3.1", dev_dependency = True) | ||
bazel_dep(name = "rules_bazel_integration_test", version = "0.29.0", dev_dependency = True) | ||
#local_path_override( module_name = "rules_bazel_integration_test", path = "../rules_bazel_integration_test") | ||
|
||
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk") | ||
|
||
#Download toolchain for this version for both host and some platform targets (maybe the right ones) | ||
go_sdk.download(version = "1.22.4") | ||
|
||
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") | ||
go_deps.from_file(go_mod = "//:go.mod") | ||
|
||
# Include *direct* Go dependencies | ||
use_repo(go_deps, "com_github_disintegration_imaging") | ||
|
||
# | ||
# Toolchains | ||
# | ||
|
||
toolchains = use_extension("//toolchains:extensions.bzl", "synology_deps") | ||
|
||
#synology_toolchains = use_extension("//toolchains:extensions.bzl", "synology_toolchains") | ||
use_repo( | ||
toolchains, | ||
"arm64_gcc_linux_x86_64", | ||
"armada37xx-gcc850_glibc226_armv8-GPL", | ||
"denverton-gcc850_glibc226_x86_64-GPL", | ||
"geminilake-gcc850_glibc226_x86_64-GPL", | ||
) | ||
|
||
# | ||
# Integration tests | ||
# | ||
|
||
bazel_binaries = use_extension("@rules_bazel_integration_test//:extensions.bzl", "bazel_binaries", dev_dependency = True) | ||
bazel_binaries.download(version_file = "//:.bazelversion") | ||
bazel_binaries.download(version = "6.0.0") | ||
use_repo(bazel_binaries, "bazel_binaries", "bazel_binaries_bazelisk", "build_bazel_bazel_.bazelversion", "build_bazel_bazel_6_0_0") | ||
|
||
# | ||
# Used for testing (but should move out of //examples:BUILD.bazel) | ||
# | ||
|
||
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") | ||
|
||
http_file( | ||
name = "screaming_goat", | ||
sha256 = "030c1aadeaf9b7b01b27d4966a64173fbfe2e0eea2ec3577543fb8838c3013f0", | ||
urls = [ | ||
"https://dehayf5mhw1h7.cloudfront.net/wp-content/uploads/sites/816/2019/01/22193028/Screaming-Goat-832-832x476.jpg", | ||
], | ||
) |
12 changes: 12 additions & 0 deletions
12
modules/rules_synology/0.2.0/patches/fix_bazelignore.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/.bazelignore b/.bazelignore | ||
index 4ac6f4f..a94eadf 100644 | ||
--- a/.bazelignore | ||
+++ b/.bazelignore | ||
@@ -1,3 +1,5 @@ | ||
-# ignore the examples which are used to document suggested usage, validate this project, and -- in future -- repro issues | ||
-examples/** | ||
+# ignore the examples which are used to document suggested usage, validate this project, | ||
+# and -- in future -- repro issues that may arise | ||
+docs | ||
+examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
matrix: | ||
platform: | ||
- ubuntu2204 | ||
- macos | ||
bazel: [7.x, 8.x] | ||
tasks: | ||
verify_targets: | ||
name: Verify basic build targets | ||
bazel: ${{ bazel }} | ||
platform: ${{ platform }} | ||
build_targets: | ||
- '@rules_synology//...' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"integrity": "sha256-wN/rKIaLXDeXI/CODmom7HOrmqpXZfdr0JXhNmalO+k=", | ||
"patch_strip": 1, | ||
"patches": { | ||
"fix_bazelignore.patch": "sha256-So3zJpDh5dTQ0pHufMfwI08rThrs/+wj+Ku2CCb3WTA=" | ||
}, | ||
"strip_prefix": "rules_synology-v0.2.0", | ||
"url": "https://github.com/chickenandpork/rules_synology/releases/download/v0.2.0/rules_synology-v0.2.0.tar.xz" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,18 @@ | |
"homepage": "https://chickenandpork.github.io/rules_synology/", | ||
"maintainers": [ | ||
{ | ||
"name": "Allan Clark", | ||
"email": "[email protected]", | ||
"github": "chickenandpork" | ||
"github": "chickenandpork", | ||
"name": "Allan Clark" | ||
} | ||
], | ||
"repository": [ | ||
"github:chickenandpork/rules_synology" | ||
], | ||
"versions": [ | ||
"0.0.2", | ||
"0.1.1" | ||
"0.1.1", | ||
"0.2.0" | ||
], | ||
"yanked_versions": {} | ||
} |