diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9353787658a..df82ab3540a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,6 +65,21 @@ jobs: - name: Run Ruby tests run: bundle exec rake compile_no_debug + build-jruby: + runs-on: ubuntu-latest + env: + JRUBY_OPTS: "--dev" + steps: + - uses: actions/checkout@v3 + - name: Set up JRuby + uses: ruby/setup-ruby@v1 + with: + ruby-version: jruby + bundler-cache: true + - name: Compile generated Java files + run: jruby --dev -S bundle exec rake compile + shell: bash + lex-ruby: runs-on: ubuntu-latest steps: diff --git a/Gemfile b/Gemfile index 90102c5b770..fedc01f1a06 100644 --- a/Gemfile +++ b/Gemfile @@ -9,4 +9,4 @@ gemspec gem "rake" gem "rake-compiler" gem "test-unit" -gem "ruby_memcheck" +gem "ruby_memcheck", platform: %i[ mri truffleruby mswin mingw x64_mingw ]