Skip to content

Commit b81792d

Browse files
committed
Merge branch 'main' of https://github.com/hewillk/draft
2 parents a709753 + 3262d2f commit b81792d

31 files changed

+4314
-355
lines changed

.github/workflows/check.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,53 @@ defaults:
1111

1212
jobs:
1313
run-checks:
14-
name: Run checks
15-
runs-on: ubuntu-22.04
14+
name: Run checks on ${{matrix.cfg.name}}
15+
runs-on: ${{matrix.cfg.os}}
16+
17+
strategy:
18+
matrix:
19+
cfg:
20+
- { name: 'Linux', os: 'ubuntu-22.04' }
21+
- { name: 'MacOS', os: 'macos-12' }
1622

1723
steps:
1824
- name: checkout
1925
uses: actions/checkout@v2
2026

27+
- name: install GNU tools
28+
if: matrix.cfg.os == 'macos-12'
29+
run: |
30+
brew install gnu-sed
31+
echo "/usr/local/opt/gnu-sed/libexec/gnubin" >> ${GITHUB_PATH}
32+
2133
- name: check-source.sh
2234
run: ../tools/check-source.sh
2335

2436
- name: update-apt-cache
37+
if: matrix.cfg.os == 'ubuntu-22.04'
2538
run: sudo apt-get update
2639

27-
- name: install
40+
- name: install (Linux)
41+
if: matrix.cfg.os == 'ubuntu-22.04'
2842
run: sudo apt-get install latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended lmodern
2943

44+
- name: install (MacOS, Part 1/2)
45+
if: matrix.cfg.os == 'macos-12'
46+
run: |
47+
brew install basictex
48+
eval "$(/usr/libexec/path_helper)"
49+
echo "PATH=${PATH}" >> ${GITHUB_ENV}
50+
sudo tlmgr update --self
51+
sudo tlmgr install latexmk isodate substr relsize ulem fixme rsfs extract layouts enumitem l3packages l3kernel imakeidx splitindex xstring
52+
3053
- name: make
3154
run: make quiet
3255

3356
- name: check-output.sh
3457
run: ../tools/check-output.sh
3558

3659
- name: upload PDF
60+
if: matrix.cfg.os == 'ubuntu-22.04'
3761
uses: actions/upload-artifact@v2
3862
with:
3963
name: draft-snapshot

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Install the `MacTeX distribution <http://tug.org/mactex/>`_.
2424
If you are on a slow network, you'll want to get the `BasicTeX package <http://tug.org/mactex/morepackages.html>`_ instead,
2525
then run the following command to install the other packages that the draft requires:
2626

27-
sudo tlmgr install latexmk isodate substr relsize ulem fixme rsfs extract layouts enumitem l3packages l3kernel imakeidx splitindex
27+
sudo tlmgr install latexmk isodate substr relsize ulem fixme rsfs extract layouts enumitem l3packages l3kernel imakeidx splitindex xstring
2828

2929
---------------------------------------
3030
Getting Started on Debian-based Systems

0 commit comments

Comments
 (0)