Skip to content

Commit b5942f3

Browse files
committed
mac: use fake pdflatex
1 parent 052a358 commit b5942f3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/build-svn.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
run: |
6565
brew install $(brew deps --include-build r) texinfo wget
6666
echo "::set-env name=PATH::$PATH:/Library/TeX/texbin:/usr/local/opt/texinfo/bin"
67+
echo "::set-env name=workspace::$GITHUB_WORKSPACE"
6768
6869
- name: Checkout
6970
uses: actions/checkout@v2
@@ -78,14 +79,19 @@ jobs:
7879
7980
- name: Configure
8081
run: ./configure --disable-java --without-cairo --without-tcltk --without-x --with-aqua --with-lapack --enable-R-shlib --with-blas="-L/usr/local/opt/openblas/lib -lopenblas" SED=/usr/bin/sed
82+
env:
83+
PDFLATEX: ${{ env.workspace }}/.github/workflows/dummy
8184

8285
- name: Build
8386
run: make
87+
env:
88+
PDFLATEX: ${{ env.workspace }}/.github/workflows/dummy
8489

8590
- name: Check
8691
run: |
87-
sed -i.bak 's/reg-packages.R//g' tests/Makefile.common
8892
make check-all
93+
env:
94+
PDFLATEX: ${{ env.workspace }}/.github/workflows/dummy
8995

9096
- name: Print failed tests
9197
if: failure()

.github/workflows/dummy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
v=$(echo "$@" | grep -o '[^ ]*\.tex')
3+
if [ -z "$v" ]; then
4+
echo "Failed to parse tex file from: pdflatex $@"
5+
exit 1
6+
fi
7+
file="${v::${#v}-4}"
8+
echo "dummy pdf" > "${file}.pdf"
9+
echo "dummy log" > "${file}.log"

0 commit comments

Comments
 (0)