This is an automated email from the ASF dual-hosted git repository.

hoslo pushed a commit to branch chainsafe-test
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit a6742600ddfcfbfadf121dc1b40b48681fd9f7ca
Author: ran <[email protected]>
AuthorDate: Sun Jan 28 22:15:49 2024 +0800

    feat(services/chainsafe): setup test for chainsafe
---
 .../services/chainsafe/chainsafe/action.yml        | 33 ++++++++--------------
 bindings/java/Cargo.toml                           |  2 ++
 bindings/nodejs/Cargo.toml                         |  2 ++
 bindings/ocaml/Cargo.toml                          |  2 +-
 bindings/ocaml/dune-project                        | 10 +++----
 bindings/ocaml/opendal.opam                        |  8 +++---
 bindings/python/Cargo.toml                         |  2 ++
 7 files changed, 28 insertions(+), 31 deletions(-)

diff --git a/bindings/ocaml/Cargo.toml 
b/.github/services/chainsafe/chainsafe/action.yml
similarity index 62%
copy from bindings/ocaml/Cargo.toml
copy to .github/services/chainsafe/chainsafe/action.yml
index d4f8449503..09920e8cb8 100644
--- a/bindings/ocaml/Cargo.toml
+++ b/.github/services/chainsafe/chainsafe/action.yml
@@ -15,25 +15,16 @@
 # specific language governing permissions and limitations
 # under the License.
 
-[package]
-name = "opendal-ocaml"
-publish = false
-version = "0.0.0"
+name: chainsafe
+description: 'Behavior test for Chainsafe.'
 
-authors = ["Apache OpenDAL <[email protected]>"]
-edition = "2021"
-homepage = "https://opendal.apache.org/";
-license = "Apache-2.0"
-repository = "https://github.com/apache/opendal";
-rust-version = "1.67"
-
-[lib]
-crate-type = ["staticlib", "cdylib"]
-doc = false
-
-[dependencies]
-ocaml = { version = "^1.0.0-beta" }
-opendal = { path = "../../core" }
-
-[build-dependencies]
-ocaml-build = { version = "^1.0.0-beta" }
+runs:
+  using: "composite"
+  steps:
+    - name: Setup
+      uses: 1password/load-secrets-action@v1
+      with:
+        export-env: true
+      env:
+        OPENDAL_CHAINSAFE_BUCKET_ID: op://services/chainsafe/bucket_id
+        OPENDAL_CHAINSAFE_API_KEY: op://services/chainsafe/api_key
diff --git a/bindings/java/Cargo.toml b/bindings/java/Cargo.toml
index 9d199342c3..7e38605d88 100644
--- a/bindings/java/Cargo.toml
+++ b/bindings/java/Cargo.toml
@@ -53,6 +53,7 @@ services-all = [
   "default",
 
   "services-cacache",
+  "services-chainsafe",
   "services-dashmap",
   "services-dropbox",
   "services-etcd",
@@ -98,6 +99,7 @@ services-all = [
 services-azblob = ["opendal/services-azblob"]
 services-azdls = ["opendal/services-azdls"]
 services-cos = ["opendal/services-cos"]
+services-chainsafe = ["opendal/services-chainsafe"]
 services-fs = ["opendal/services-fs"]
 services-gcs = ["opendal/services-gcs"]
 services-ghac = ["opendal/services-ghac"]
diff --git a/bindings/nodejs/Cargo.toml b/bindings/nodejs/Cargo.toml
index f9182e3a88..9521e3ba7a 100644
--- a/bindings/nodejs/Cargo.toml
+++ b/bindings/nodejs/Cargo.toml
@@ -52,6 +52,7 @@ services-all = [
   "services-azfile",
   "services-b2",
   "services-cacache",
+  "services-chainsafe",
   "services-dashmap",
   "services-dropbox",
   "services-etcd",
@@ -93,6 +94,7 @@ services-all = [
 services-azblob = ["opendal/services-azblob"]
 services-azdls = ["opendal/services-azdls"]
 services-cos = ["opendal/services-cos"]
+services-chainsafe = ["opendal/services-chainsafe"]
 services-fs = ["opendal/services-fs"]
 services-gcs = ["opendal/services-gcs"]
 services-ghac = ["opendal/services-ghac"]
diff --git a/bindings/ocaml/Cargo.toml b/bindings/ocaml/Cargo.toml
index d4f8449503..f7529ca575 100644
--- a/bindings/ocaml/Cargo.toml
+++ b/bindings/ocaml/Cargo.toml
@@ -33,7 +33,7 @@ doc = false
 
 [dependencies]
 ocaml = { version = "^1.0.0-beta" }
-opendal = { path = "../../core" }
+opendal = { version = "0.44.2" }
 
 [build-dependencies]
 ocaml-build = { version = "^1.0.0-beta" }
diff --git a/bindings/ocaml/dune-project b/bindings/ocaml/dune-project
index 46a3acad0c..b9cd925bf7 100644
--- a/bindings/ocaml/dune-project
+++ b/bindings/ocaml/dune-project
@@ -1,4 +1,4 @@
-(lang dune 2.0)
+(lang dune 2.1)
 ; Licensed to the Apache Software Foundation (ASF) under one
 ; or more contributor license agreements.  See the NOTICE file
 ; distributed with this work for additional information
@@ -25,11 +25,11 @@
 (documentation "https://opendal.apache.org/";)
 (package
  (name opendal)
- (synopsis "Open Data Access Layer: Access data freely")
+ (synopsis "Apache OpenDAL™ OCaml Binding")
  (description
-  "OpenDAL is a data access layer that allows users to easily and efficiently 
retrieve data from various storage services in a unified way.")
+  "Apache OpenDAL™ is a data access layer that allows users to easily and 
efficiently retrieve data from various storage services in a unified way.")
  (depends
   (ounit2 (and (>= 2.2.6) :with-test))
-  (ocaml (>= "4.03.0"))
-  (dune (>= "1.5"))
+  (ocaml (and (>= "4.10.0") (< 5)))
+  (dune (>= "2.1"))
   conf-rust))
diff --git a/bindings/ocaml/opendal.opam b/bindings/ocaml/opendal.opam
index 9fe88f9f73..99b84a9ea8 100644
--- a/bindings/ocaml/opendal.opam
+++ b/bindings/ocaml/opendal.opam
@@ -1,8 +1,8 @@
 # This file is generated by dune, edit dune-project instead
 opam-version: "2.0"
-synopsis: "Open Data Access Layer: Access data freely"
+synopsis: "Apache OpenDAL™ OCaml Binding"
 description:
-  "OpenDAL is a data access layer that allows users to easily and efficiently 
retrieve data from various storage services in a unified way."
+  "Apache OpenDAL™ is a data access layer that allows users to easily and 
efficiently retrieve data from various storage services in a unified way."
 maintainer: ["OpenDAL Contributors <[email protected]>"]
 authors: ["OpenDAL Contributors <[email protected]>"]
 license: "Apache-2.0"
@@ -11,8 +11,8 @@ doc: "https://opendal.apache.org/";
 bug-reports: "https://github.com/apache/opendal/issues";
 depends: [
   "ounit2" {>= "2.2.6" & with-test}
-  "ocaml" {>= "4.03.0"}
-  "dune" {>= "1.5"}
+  "ocaml" {>= "4.10.0" & < "5"}
+  "dune" {>= "2.1"}
   "conf-rust"
 ]
 build: [
diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml
index f2145c8ee5..eb964de02f 100644
--- a/bindings/python/Cargo.toml
+++ b/bindings/python/Cargo.toml
@@ -50,6 +50,7 @@ services-all = [
 
   "services-azfile",
   "services-cacache",
+  "services-chainsafe",
   "services-dashmap",
   "services-dropbox",
   # FIXME this service need protoc
@@ -95,6 +96,7 @@ services-all = [
 services-azblob = ["opendal/services-azblob"]
 services-azdls = ["opendal/services-azdls"]
 services-cos = ["opendal/services-cos"]
+services-chainsafe = ["opendal/services-chainsafe"]
 services-fs = ["opendal/services-fs"]
 services-gcs = ["opendal/services-gcs"]
 services-ghac = ["opendal/services-ghac"]

Reply via email to