-
Notifications
You must be signed in to change notification settings - Fork 751
74 lines (58 loc) · 1.91 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# A workflow to run our check script.
name: check
on: [pull_request, push]
defaults:
run:
shell: bash
working-directory: source
jobs:
run-checks:
name: Run checks on ${{matrix.cfg.name}}
runs-on: ${{matrix.cfg.os}}
strategy:
matrix:
cfg:
- { name: 'Linux', os: 'ubuntu-22.04' }
- { name: 'MacOS', os: 'macos-13' }
steps:
- name: checkout
uses: actions/checkout@v3
- name: install GNU tools
if: matrix.cfg.os == 'macos-13'
run: |
brew install gnu-sed
echo "/usr/local/opt/gnu-sed/libexec/gnubin" >> ${GITHUB_PATH}
- name: check-source.sh
run: ../tools/check-source.sh
- name: update brew
if: matrix.cfg.os == 'macos-13'
run: |
brew update
- name: update-apt-cache
if: matrix.cfg.os == 'ubuntu-22.04'
run: sudo apt-get update
- name: install (Linux)
if: matrix.cfg.os == 'ubuntu-22.04'
run: sudo apt-get install latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended lmodern
- name: install (MacOS)
if: matrix.cfg.os == 'macos-13'
run: |
brew install basictex
eval "$(/usr/libexec/path_helper)"
echo "PATH=${PATH}" >> ${GITHUB_ENV}
sudo tlmgr update --self
sudo tlmgr install latexmk isodate substr relsize ulem fixme rsfs extract layouts enumitem l3packages l3kernel imakeidx splitindex xstring
- name: make (Linux)
if: matrix.cfg.os == 'ubuntu-22.04'
run: make quiet
- name: make (MacOS)
if: matrix.cfg.os == 'macos-13'
run: make full
- name: check-output.sh
run: ../tools/check-output.sh
- name: upload PDF
if: matrix.cfg.os == 'ubuntu-22.04'
uses: actions/upload-artifact@v3
with:
name: draft-snapshot
path: source/std.pdf