Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .bazelversion

This file was deleted.

12 changes: 12 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"maintainers": [
{
"github": "1e100"
}
],
"repository": [
"github:1e100/cloud_archive"
],
"versions": [],
"yanked_versions": {}
}
10 changes: 10 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
matrix:
platform:
- ubuntu2404
- macos
tasks:
verify_targets:
name: Verify basic build targets
platform: ${{ platform }}
build_targets:
- '@cloud_archive//...'
5 changes: 5 additions & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "",
"strip_prefix": "{REPO}-{TAG}",
"url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.zip"
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ __pycache__
xcuserdata/
.idea

# thrash happens; let it happen for now
MODULE.bazel.lock
72 changes: 72 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
module(name = "cloud_archive")

bazel_dep(name = "rules_cc", version = "0.2.0")

s3_archive = use_repo_rule("//:cloud_archive.bzl", "s3_archive")

s3_archive(
name = "archive_s3",
bucket = "1e100-temp",
build_file = "//:BUILD.archive",
file_path = "cloud_archive_test.zip",
sha256 = "d0ff6239646b3a60e4d8926402281311e003ae03183b1ae24f2adba5d9289f04",
strip_prefix = "cloud_archive_test",
)

minio_archive = use_repo_rule("//:cloud_archive.bzl", "minio_archive")

minio_archive(
name = "archive_minio_gz",
build_file = "//:BUILD.archive",
file_path = "minio/temp/cloud_archive_test.tar.gz",
sha256 = "bf4dd5304180561a745e816ee6a8db974a3fcf5b9d706a493776d77202c48bc9",
strip_prefix = "cloud_archive_test",
)

minio_archive(
name = "archive_minio_zstd",
build_file = "//:BUILD.archive",
file_path = "minio/temp/cloud_archive_test.tar.zst",
sha256 = "1891c85349f519206a2a2aa21f4927146b8cf84db04d3be91e0b54ce564d8b73",
strip_prefix = "dir1",
)

gs_archive = use_repo_rule("//:cloud_archive.bzl", "gs_archive")

gs_archive(
name = "archive_gcloud_gz",
bucket = "depthwise-temp",
build_file = "//:BUILD.archive",
file_path = "cloud_archive_test.tar.gz",
sha256 = "bf4dd5304180561a745e816ee6a8db974a3fcf5b9d706a493776d77202c48bc9",
strip_prefix = "cloud_archive_test",
)

gs_archive(
name = "archive_gcloud_zstd",
bucket = "depthwise-temp",
build_file = "//:BUILD.archive",
file_path = "cloud_archive_test.tar.zst",
sha256 = "1891c85349f519206a2a2aa21f4927146b8cf84db04d3be91e0b54ce564d8b73",
strip_prefix = "dir1",
)

gs_archive(
name = "archive_gcloud_zstd_strip2",
bucket = "depthwise-temp",
build_file = "//:BUILD.archive",
file_path = "cloud_archive_test.tar.zst",
sha256 = "1891c85349f519206a2a2aa21f4927146b8cf84db04d3be91e0b54ce564d8b73",
strip_prefix = "dir1/dir2",
)

gs_archive(
name = "archive_gcloud_zstd_patch",
bucket = "depthwise-temp",
build_file = "//:BUILD.archive",
file_path = "cloud_archive_test.tar.zst",
patch_args = ["-p1"],
patches = ["//:test.patch"],
sha256 = "1891c85349f519206a2a2aa21f4927146b8cf84db04d3be91e0b54ce564d8b73",
strip_prefix = "dir1",
)