From 8197fc7f87847528058255ba09c37399291d1430 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 28 Nov 2023 12:27:40 +0100 Subject: [PATCH] Ensure the gem installs fine on truffleruby in CI --- .github/workflows/ubuntu.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 361a4eb..9ccea23 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -12,7 +12,7 @@ jobs: os: - ubuntu-22.04 - ubuntu-20.04 - ruby: [ '2.7', '3.0', '3.1', '3.2', 'debug', 'head', 'jruby-head' ] + ruby: [ '2.7', '3.0', '3.1', '3.2', 'debug', 'head', 'jruby-head', 'truffleruby-head' ] steps: - uses: actions/checkout@v4 - name: Set up Ruby @@ -42,5 +42,12 @@ jobs: env: GH_TOKEN: ${{ github.token }} - name: Run test + # Tests don't pass yet on truffleruby + if: >- + matrix.ruby != 'truffleruby-head' run: bundle exec rake continue-on-error: ${{ startsWith(matrix.ruby, 'jruby') }} + - name: Install gem + run: | + gem install pkg/*.gem + ruby -rstringio -e 'puts StringIO::VERSION'