-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (32 loc) · 1023 Bytes
/
docker.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
name: Docker
on:
push:
branches: [ main ]
paths-ignore:
- '*.md'
- '.github/workflows/main.yml'
- '.github/workflows/release.yml'
pull_request:
branches: [ main ]
paths-ignore:
- '*.md'
- '.github/workflows/main.yml'
- '.github/workflows/release.yml'
jobs:
docker:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Use docker to handle dependencies and prepend executables to PATH
- name: Pull + retag docker images for LaTeX dependencies (ubuntu:latest)
run: |
docker pull mathematicalmichael/latex:thesis
docker tag mathematicalmichael/latex:thesis latex:thesis
- name: Set up PATH for binaries
run: echo "PATH=$(pwd)/bin:$PATH" >> $GITHUB_ENV
- name: Compile thesis with latexmk (docker-based)
run: make
- name: Test bin/ contents compilation
run: |
cd bin && make all