Skip to content

Commit 9819df0

Browse files
authored
Merge pull request #4 from aobolensk/ci
2 parents 6ca6e00 + 3faa798 commit 9819df0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ubuntu-build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Setup environment
11+
run: |
12+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
13+
sudo apt-get update
14+
sudo apt-get install ninja-build
15+
sudo apt-get install texlive*
16+
- name: Build
17+
run: |
18+
find . -iname '*.tex' -exec pdflatex {} \;
19+
- uses: actions/upload-artifact@v4
20+
with:
21+
name: pdf-linux
22+
path: '*.pdf'
23+
macos-build:
24+
runs-on: macos-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Setup environment
28+
run: |
29+
brew install --cask mactex
30+
- name: Build
31+
run: |
32+
eval "$(/usr/libexec/path_helper)"
33+
find . -iname '*.tex' -exec pdflatex {} \;
34+
- uses: actions/upload-artifact@v4
35+
with:
36+
name: pdf-macos
37+
path: '*.pdf'

0 commit comments

Comments
 (0)