Skip to content

Commit

Permalink
build: implement release process in odev (#5592)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Feb 2, 2025
1 parent 6623b9f commit a570bcc
Show file tree
Hide file tree
Showing 27 changed files with 817 additions and 230 deletions.
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/3-new-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ This issue is used to track tasks of the opendal ${opendal_version} release.

### Build Release

#### Release List

<!-- Generate release list by `./scripts/version.py`, please adapt with the actual needs. -->

#### GitHub Side

- [ ] Bump version in project
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Check license headers
uses: korandoru/hawkeye@v5
uses: korandoru/hawkeye@v6

# Add python format check later.
code-format:
Expand Down
1 change: 0 additions & 1 deletion bindings/c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ homepage = "https://opendal.apache.org/"
license = "Apache-2.0"
repository = "https://github.com/apache/opendal"
rust-version = "1.75"
version = "0.45.3"

[lib]
crate-type = ["cdylib", "staticlib"]
Expand Down
1 change: 0 additions & 1 deletion bindings/cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ homepage = "https://opendal.apache.org/"
license = "Apache-2.0"
repository = "https://github.com/apache/opendal"
rust-version = "1.75"
version = "0.45.15"

[lib]
crate-type = ["staticlib"]
Expand Down
1 change: 0 additions & 1 deletion bindings/dotnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
[package]
name = "opendal-dotnet"
publish = false
version = "0.1.13"

authors = ["Apache OpenDAL <[email protected]>"]
edition = "2021"
Expand Down
1 change: 0 additions & 1 deletion bindings/haskell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ homepage = "https://opendal.apache.org/"
license = "Apache-2.0"
repository = "https://github.com/apache/opendal"
rust-version = "1.75"
version = "0.44.15"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion bindings/haskell/opendal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cabal-version: 3.0
-- under the License.

name: opendal
version: 0.44.15.0
version: 0.1.0
license: Apache-2.0
synopsis: Apache OpenDAL™ Haskell Binding
description:
Expand Down
1 change: 0 additions & 1 deletion bindings/java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ homepage = "https://opendal.apache.org/"
license = "Apache-2.0"
repository = "https://github.com/apache/opendal"
rust-version = "1.75"
version = "0.47.7"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<groupId>org.apache.opendal</groupId>
<artifactId>opendal</artifactId>
<version>0.47.7</version>
<version>0.47.7</version> <!-- update version number -->

<name>Apache OpenDAL™</name>
<description>
Expand Down
1 change: 0 additions & 1 deletion bindings/lua/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
[package]
name = "opendal-lua"
publish = false
version = "0.1.13"

authors = ["Apache OpenDAL <[email protected]>"]
edition = "2021"
Expand Down
11 changes: 8 additions & 3 deletions bindings/lua/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,41 @@ print("read: ", op:read("test.txt"))
```

## Lua version

You have to enable one of the features: lua54, lua53, lua52, lua51, luajit(52) or luau in `Cargo.toml`, according to the chosen Lua version. Default Lua version is 5.2.

## Build from source

1. Build OpenDAL LUA Interface
1. Build OpenDAL Lua Interface

```bash
$ cd bindings/lua
$ cargo build --package opendal-lua --release
```

2. Install opendal lua library
2. Install opendal Lua library

```bash
# copy to lua share library directory
# default lua5.2 share library directory is /usr/lib/lua/5.2
$ cp ../../target/release/libopendal_lua.so /usr/lib/lua/5.2/opendal.so
```

## Install from luarocks
## Install from LuaRocks

```bash
$ luarocks make
```

## Usage

```bash
$ lua5.2 example/fs.lua
read: hello world
```

## Test

```bash
$ busted -o gtest test/opendal_test.lua
[==========] Running tests from scanned files.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package = "opendal"
version = "0.1.13-1"
version = "0.1.0-1"

source = {
url = "git+https://github.com/apache/opendal/",
Expand Down
1 change: 0 additions & 1 deletion bindings/nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ homepage = "https://opendal.apache.org/"
license = "Apache-2.0"
repository = "https://github.com/apache/opendal"
rust-version = "1.75"
version = "0.47.9"

[features]
default = [
Expand Down
1 change: 0 additions & 1 deletion bindings/ocaml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
[package]
name = "opendal-ocaml"
publish = false
version = "0.0.0"

authors = ["Apache OpenDAL <[email protected]>"]
edition = "2021"
Expand Down
1 change: 0 additions & 1 deletion bindings/php/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
[package]
name = "opendal-php"
publish = false
version = "0.1.12"

authors = ["Apache OpenDAL <[email protected]>"]
edition = "2021"
Expand Down
1 change: 0 additions & 1 deletion bindings/ruby/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
[package]
name = "opendal-ruby"
publish = false
version = "0.1.13"

authors = ["Apache OpenDAL <[email protected]>"]
edition = "2021"
Expand Down
Loading

0 comments on commit a570bcc

Please sign in to comment.