-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 904 Bytes
/
build.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
name: Build
on: [push, pull_request]
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install ninja-build
sudo apt-get install texlive*
- name: Build
run: |
find . -iname '*.tex' -exec pdflatex {} \;
- uses: actions/upload-artifact@v4
with:
name: pdf-linux
path: '*.pdf'
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
run: |
brew install --cask mactex
- name: Build
run: |
eval "$(/usr/libexec/path_helper)"
find . -iname '*.tex' -exec pdflatex {} \;
- uses: actions/upload-artifact@v4
with:
name: pdf-macos
path: '*.pdf'