summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-10-09 23:44:28 -0600
committerGitHub <noreply@github.com>2020-10-09 23:44:28 -0600
commitc58b7ecee74efda717335d233dbb792ce4b67e82 (patch)
treef9f3a03635472571c85e476ad807d2ad6569b4c4 /.github
parent22acfe26ea77da8b88a7b86126df8a5f9d2ddea8 (diff)
resolves #1790 fix and test optimizer on windows (PR #1794)
* patch RGhost::GSAlone to handle command arguments properly * install Ghostscript in CI job on Windows and enable optimizer tests on Windows * add Chocolatey step job config to install ghostscript
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5a810a14..68ed30a1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,9 +14,14 @@ jobs:
ruby: [jruby, '2.7', '2.6', '2.5']
env:
PYGMENTS_VERSION: '~> 1.2.0'
+ RGHOST_VERSION: '0.9.7'
steps:
- name: Checkout
uses: actions/checkout@v2
+ - name: Install Ghostscript
+ uses: crazy-max/ghaction-chocolatey@v1
+ with:
+ args: install --no-progress ghostscript
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
@@ -32,4 +37,6 @@ jobs:
$ErrorActionPreference = 'Continue'
bundle --jobs 3 --retry 3
- name: Test
- run: bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') spec
+ run: |
+ $env:GS = & where.exe /R 'C:\Program Files\gs' gswin64c.exe
+ bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') spec