aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: 9f036aa3fb87e5d8b98f48b6425c3ed70238944b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
image: debian/testing
packages:
    - pandoc
    - weasyprint
    - poppler-utils
sources:
    - https://git.sr.ht/~boringcactus/crowbar-spec
tasks:
    - page-count: |
        cd crowbar-spec
        files="index vs-c tagged-unions types safety errors syntax"
        for file in $files
        do
            pandoc --defaults=etc/md.yml -o $file.html $file.md
        done
        pandoc --defaults=etc/pdf.yml -o ../spec.pdf *.html
        cd ..
        pdfinfo spec.pdf | grep Pages
        tar czvf spec-html.tar.gz crowbar-spec/*.html
artifacts:
    - spec.pdf
    - spec-html.tar.gz