Skip to content

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,19 @@ jobs:
4343
with:
4444
extra-packages: rcmdcheck
4545

46-
- uses: jy95/ghostscript-action@v1
47-
46+
- run: sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes ghostscript
47+
if: runner.os == 'Linux'
48+
49+
- run: choco install ghostscript --no-progress
50+
if: runner.os == 'Windows'
51+
- shell: bash
52+
run: |
53+
echo "C:/Program Files (x86)/gs/gs9.53.3/bin/" >> $GITHUB_PATH
54+
echo "C:/Program Files/gs/gs9.53.3/bin/" >> $GITHUB_PATH
55+
export PATH="/c/Program Files (x86)/gs/gs9.53.3/bin/:$PATH"
56+
export PATH="/c/Program Files/gs/gs9.53.3/bin/:$PATH"
57+
if: matrix.config.os == 'windows-latest'
58+
4859
- uses: r-lib/actions/check-r-package@v2
4960
with:
5061
build_args: 'c("--compact-vignettes=both")'

0 commit comments

Comments
 (0)