Skip to content

Commit

Permalink
chore(bindings/c): make c binding separate workspace (#3856)
Browse files Browse the repository at this point in the history
* update

Signed-off-by: suyanhanx <[email protected]>

* fix path

Signed-off-by: suyanhanx <[email protected]>

---------

Signed-off-by: suyanhanx <[email protected]>
  • Loading branch information
suyanhanx authored Dec 29, 2023
1 parent 638692d commit 0df6c03
Show file tree
Hide file tree
Showing 10 changed files with 2,169 additions and 120 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bindings_go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Generate pkg-config file
run: |
echo "libdir=$(pwd)/target/debug/" >> opendal_c.pc
echo "libdir=$(pwd)/bindings/c/target/debug/" >> opendal_c.pc
echo "includedir=$(pwd)/bindings/c/include/" >> opendal_c.pc
echo "Name: opendal_c" >> opendal_c.pc
echo "Description: opendal c binding" >> opendal_c.pc
Expand All @@ -70,7 +70,7 @@ jobs:
echo "Cflags: -I\${includedir}" >> opendal_c.pc
echo "PKG_CONFIG_PATH=$(pwd)" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$(pwd)/target/debug" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$(pwd)/bindings/c/target/debug" >> $GITHUB_ENV
- name: Run tests
working-directory: bindings/go
Expand Down
111 changes: 8 additions & 103 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ default-members = ["core"]
exclude = [
"examples",

"bindings/c",
"bindings/ocaml",
"bindings/php",
"bindings/ruby"
Expand All @@ -30,7 +31,6 @@ members = [
"core/edge/*",
"core/benches/vs_*",

"bindings/c",
"bindings/nodejs",
"bindings/python",
"bindings/java",
Expand Down
Loading

0 comments on commit 0df6c03

Please sign in to comment.