Skip to content
Merged
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
7 changes: 6 additions & 1 deletion .github/workflows/ci_bindings_c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7

Expand All @@ -53,13 +54,17 @@ jobs:
sudo apt-get update
sudo apt-get install -y build-essential pkg-config uuid-dev libcurl4-gnutls-dev

# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/c"
run: cargo clippy --version

- name: Clippy Check
working-directory: "bindings/c"

run: |
cargo clippy -- -D warnings


- name: Build C binding
working-directory: "bindings/c"
run: |
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/ci_bindings_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ permissions:
jobs:
test:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v7
- name: Install dependencies
Expand All @@ -52,11 +53,15 @@ jobs:

- name: Setup Rust toolchain
uses: ./.github/actions/setup


# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/cpp"
run: cargo clippy --version

- name: Clippy Check
working-directory: "bindings/cpp"
run: |
cargo clippy -- -D warnings
run: cargo clippy -- -D warnings

- name: Build Cpp binding && Run tests
working-directory: "bindings/cpp"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_bindings_dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ jobs:
working-directory: bindings/dart
run: flutter pub get

# Useful for debugging
- name: Print Clippy version
working-directory: bindings/dart/rust
run: cargo clippy --version

- name: Check Clippy
working-directory: bindings/dart/rust
run: cargo clippy -- -D warnings
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ci_bindings_dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,15 @@ jobs:
need-protoc: true
need-rocksdb: true
github-token: ${{ secrets.GITHUB_TOKEN }}


# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/dotnet"
run: cargo clippy --version

- name: Clippy Check
working-directory: "bindings/dotnet"
run: |
cargo clippy -- -D warnings
run: cargo clippy -- -D warnings

test:
runs-on: ${{ matrix.os }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci_bindings_haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,14 @@ jobs:
cabal update
- name: Setup Rust toolchain
uses: ./.github/actions/setup
# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/haskell"
run: cargo clippy --version

- name: Clippy Check
working-directory: "bindings/haskell"
run: |
cargo clippy -- -D warnings
run: cargo clippy -- -D warnings
- name: Restore haskell cache
uses: actions/cache/restore@v6
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_bindings_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ jobs:
working-directory: bindings/java
run: |
./mvnw clean compile spotless:check
# Useful for debugging
- name: Print Clippy version
working-directory: bindings/java
run: cargo clippy --version

- name: Check Clippy
working-directory: bindings/java
run: cargo clippy -- -D warnings
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci_bindings_lua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,32 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7
- name: Setup lua toolchain
run: |
sudo apt-get update
sudo apt-get install -y lua-busted luarocks liblua5.2-dev

- name: Setup Rust toolchain
uses: ./.github/actions/setup

# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/lua"
run: cargo clippy --version

- name: Clippy Check
working-directory: "bindings/lua"
run: |
cargo clippy -- -D warnings
run: cargo clippy -- -D warnings

- name: Build & Test
working-directory: "bindings/lua"
run: |
sudo "PATH=$PATH" luarocks make
busted test/opendal_test.lua

- name: Run getting-started example
working-directory: "bindings/lua"
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci_bindings_nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ jobs:
- name: Check format
run: pnpm exec prettier --check .

# Useful for debugging
- name: Print Clippy version
run: cargo clippy --version

- name: Check Clippy
run: cargo clippy -- -D warnings

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci_bindings_ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ jobs:
need-depext: true
need-pin: true

# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/ocaml"
run: cargo clippy --version

- name: Clippy Check
working-directory: "bindings/ocaml"
run: |
cargo clippy -- -D warnings
run: cargo clippy -- -D warnings

test:
runs-on: ubuntu-22.04
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci_bindings_php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ jobs:
- name: Setup Rust toolchain
uses: ./.github/actions/setup

# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/php"
run: cargo clippy --version

- name: Clippy Check
working-directory: "bindings/php"
run: |
cargo clippy -- -D warnings
run: cargo clippy -- -D warnings

- name: Build opendal-php extension
working-directory: "bindings/php"
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/ci_bindings_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- name: Setup Rust toolchain
uses: ./.github/actions/setup

- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
working-directory: "bindings/python"

- uses: taiki-e/install-action@just

# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/python"
run: cargo clippy --version

- name: Run Lints
working-directory: "bindings/python"
run: just lint
Expand All @@ -54,45 +63,56 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- name: Setup Rust toolchain
uses: ./.github/actions/setup

- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
working-directory: "bindings/python"

- uses: taiki-e/install-action@just

- name: Setup taplo
uses: taiki-e/install-action@v2
with:
tool: taplo-cli

- name: Setup hawkeye
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v6.5.1/hawkeye-installer.sh | sh

- name: Regenerate stubs
working-directory: "bindings/python"
run: just stub-gen

- name: Check diff
run: git diff --exit-code

examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-protoc: true
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
working-directory: bindings/python

- name: Build with maturin
shell: bash
working-directory: "bindings/python"
run: |
uv venv --python=python3.11
uv sync --all-extras
uv run -- maturin develop

# Examples back the snippets shown in the website guide. Running them keeps
# the docs honest: a broken example fails CI instead of shipping bad docs.
- name: Run guide examples
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci_bindings_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ jobs:
- name: Setup Rust toolchain
uses: ./.github/actions/setup

# Useful for debugging
- name: Print Clippy version
working-directory: "bindings/ruby"
run: cargo clippy --version

- name: Clippy Check
working-directory: "bindings/ruby"
run: |
cargo clippy -- -D warnings
run: cargo clippy -- -D warnings

- name: Run lint
working-directory: bindings/ruby
Expand Down
Loading
Loading