File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88name : Ruby
99
10- on :
11- push :
12- branches : [ master, 72-stable ]
13- pull_request :
14- branches : [ master, 72-stable ]
10+ on : [push, pull_request]
1511
1612permissions :
1713 contents : read
@@ -336,3 +332,42 @@ jobs:
336332 - name : Run tests
337333 run : |
338334 bundle exec rake ${{ matrix.test_targets }}
335+
336+ build-gems :
337+
338+ name : Build ActiveRecord-JDBC gems
339+ runs-on : ubuntu-latest
340+
341+ env :
342+ JRUBY_OPTS : " -J-Xms64M -J-Xmx1024M --dev"
343+
344+ steps :
345+ - uses : actions/checkout@v4
346+ - name : Set up Java 21
347+ uses : actions/setup-java@v4
348+ with :
349+ distribution : ' temurin'
350+ java-version : ' 21'
351+ - name : Set up Ruby
352+ uses : ruby/setup-ruby@v1
353+ with :
354+ ruby-version : jruby-10.1
355+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
356+ - name : Build
357+ run : |
358+ rake build:adapters
359+ - name : cache sqlite3 adapter
360+ uses : actions/upload-artifact@v7
361+ with :
362+ path : pkg/activerecord-jdbcsqlite3-adapter*.gem
363+ archive : false
364+ - name : cache mysql adapter
365+ uses : actions/upload-artifact@v7
366+ with :
367+ path : pkg/activerecord-jdbcmysql-adapter*.gem
368+ archive : false
369+ - name : cache postgresql adapter
370+ uses : actions/upload-artifact@v7
371+ with :
372+ path : pkg/activerecord-jdbcpostgresql-adapter*.gem
373+ archive : false
You can’t perform that action at this time.
0 commit comments