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

kou pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/arrow-flight-sql-postgresql.git


The following commit(s) were added to refs/heads/main by this push:
     new e97a4f6  Don't cache gems on CI (#223)
e97a4f6 is described below

commit e97a4f61d7ac66be49997438507d42fa2295258c
Author: Sutou Kouhei <[email protected]>
AuthorDate: Sun Nov 15 23:04:24 2026 +0900

    Don't cache gems on CI (#223)
    
    Closes GH-222
    
    System packages required by gems such as libgirepository1.0-dev are
    installed automatically when gems are installed. But they aren't
    installed when gems are restored from cache. So the cached
    gobject_introspection.so can't be loaded on Ubuntu 26.04:
    
    libgirepository-1.0.so.1: cannot open shared object file: No such file
    or directory
    
    We stop using `bundler-cache: true` and run `bundle install` explicitly.
    We also add rubygems-requirements-system as a Bundler plugin so that
    system packages required by gems are installed automatically on `bundle
    install`.
    
    Co-authored-by: Claude Fable 5.2 <[email protected]>
---
 .github/workflows/test.yaml      | 5 +++--
 .github/workflows/verify-rc.yaml | 5 +++--
 Gemfile                          | 2 ++
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 355cb0d..334d6e3 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -51,8 +51,9 @@ jobs:
       - uses: ruby/setup-ruby@v1
         with:
           ruby-version: ruby
-          bundler-cache: true
-          cache-version: 1
+      - name: Install dependencies
+        run: |
+          bundle install
       - name: Run
         run: |
           ARROW_FLIGHT_SQL_POSTGRESQL_MESON_SETUP_ARGS="-Dbenchmark=true"
diff --git a/.github/workflows/verify-rc.yaml b/.github/workflows/verify-rc.yaml
index 712f3a6..f57b2b9 100644
--- a/.github/workflows/verify-rc.yaml
+++ b/.github/workflows/verify-rc.yaml
@@ -50,8 +50,9 @@ jobs:
       - uses: ruby/setup-ruby@v1
         with:
           ruby-version: ruby
-          bundler-cache: true
-          cache-version: 1
+      - name: Install dependencies
+        run: |
+          bundle install
       - name: Run
         run: |
           version=${GITHUB_REF_NAME%-rc*}
diff --git a/Gemfile b/Gemfile
index 04c9a18..72c9963 100644
--- a/Gemfile
+++ b/Gemfile
@@ -19,6 +19,8 @@
 
 source "https://rubygems.org";
 
+plugin "rubygems-requirements-system"
+
 gem "rake"
 # Use the version of red-arrow-flight-sql based on the available
 # arrow-glib version

Reply via email to