-
-
Notifications
You must be signed in to change notification settings - Fork 62
58 lines (58 loc) · 1.81 KB
/
build-pr.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
name: Build PR
on:
pull_request:
branches:
- main
jobs:
build-alpine:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Build Docker image
uses: ./.github/actions/build/
with:
context: ./alpine/
load: true
tags: |
paperist/texlive-ja:alpine
- name: Test
run: |
docker run --rm -v ${PWD}/tests:/workdir paperist/texlive-ja:alpine \
sh -c 'latexmk -C main.tex && latexmk main.tex && latexmk -c main.tex';
- name: Upload result
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: alpine
path: ./tests/main.pdf
build-debian:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Build Docker image
uses: ./.github/actions/build/
with:
context: ./debian/
load: true
tags: |
paperist/texlive-ja:debian
- name: Test
run: |
docker run --rm -v ${PWD}/tests:/workdir paperist/texlive-ja:debian \
sh -c 'latexmk -C main.tex && latexmk main.tex && latexmk -c main.tex';
- name: Upload result
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: debian
path: ./tests/main.pdf
build-debian-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Build Docker image
uses: ./.github/actions/build/
with:
context: ./debian/
platforms: linux/arm64