From 377c7ba631433a33e9fc17f27ee3f76cf5c2a162 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 26 May 2023 03:29:43 -0600 Subject: don't run gem install in CI workflow for JRuby 9.2 on Windows --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ffb0919..eb3af163 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,11 +122,12 @@ jobs: - name: Run tests run: bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') test:all - name: Install gem and doc - if: "!startsWith(matrix.ruby, 'truffleruby-')" + if: | + !startsWith(matrix.ruby, 'truffleruby-') && (matrix.os != 'windows-latest' || !startsWith(matrix.ruby, 'jruby-9.2.')) run: | ruby -r fileutils -e "FileUtils.rmtree 'pkg'" - bundle exec rake build - bundle exec gem install --local --document rdoc,ri pkg/*.gem + bundle exec gem build asciidoctor.gemspec -o asciidoctor.gem + bundle exec gem install --local --document rdoc,ri asciidoctor.gem bundle exec gem uninstall -ax asciidoctor build-dependents: name: build:dependents -- cgit v1.2.3