forked from arkivverket/noark5-tjenestegrensesnitt-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (69 loc) · 1.78 KB
/
ci.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
75
76
77
# vim: sw=2
name: Build CI
on:
push:
pull_request:
release:
types: [published]
check_suite:
types: [rerequested]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
image: [
"debian:bullseye",
# "debian:bookworm",
# "debian:sid"
]
container:
image: ${{ matrix.image }}
options: --cpus=2
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Install pre-dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -e
set -x
apt --quiet update
# Install stuff needed to check out the repo
apt --yes --quiet install --no-install-suggests eatmydata
eatmydata apt --yes --quiet install --no-install-suggests git
- uses: actions/checkout@v3
with:
# "fetch-depth: 0" fetches all of history, this is needed by
# our build system to determine the version from tags
fetch-depth: 0
- name: Install build dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -e
set -x
eatmydata apt --yes --quiet install make plantuml pandoc dblatex xmlto po4a dbtoepub python3-yaml texlive-xetex texlive-lang-european python3-docutils inkscape texlive lmodern
- name: Build HTML
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -e
set -x
eatmydata make html
- name: Build PDF
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -e
set -x
eatmydata make pdf
- name: Archive generated documents
uses: actions/upload-artifact@v3
with:
name: documents.zip
retention-days: 7
path: avledet/*