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
34 changes: 33 additions & 1 deletion .github/workflows/release_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,38 @@ jobs:
echo "**Ref:** ${{ github.ref_name || github.ref }}" >> "$GITHUB_STEP_SUMMARY"
echo "**Version:** $VERSION" >> "$GITHUB_STEP_SUMMARY"

smoke-test:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v7

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

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
working-directory: bindings/ruby

- name: Download source gem artifact
uses: actions/download-artifact@v8
with:
name: opendal-ruby-gem-source
path: bindings/ruby/pkg/

- name: Smoke test source gem
run: |
gem install --local pkg/opendal-*.gem --no-document
ruby -ropendal <<'EOF'
op = OpenDal::Operator.new("memory", {})
op.write("hello.txt", "hello")
raise "bad read" unless op.read("hello.txt") == "hello"
EOF

# We maintain multiple build targets for native gems.
# We only provide best-effort support for native gems. We could withdraw the support to these builds at any time.
build-native:
Expand Down Expand Up @@ -166,7 +198,7 @@ jobs:
# provide a staging registry, so publish only from the final release tag.
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')

needs: [build, build-native]
needs: [build, smoke-test, build-native]
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 0 additions & 1 deletion bindings/ruby/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
*.bundle
*.so
Gemfile.lock
Cargo.lock

/core/
Loading
Loading