-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (86 loc) · 3.27 KB
/
build.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: build
on: push
jobs:
build-simple-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: docker run --rm -v $(pwd):/satysfi amutake/satysfi satysfi doc.saty
working-directory: ./01-simple-example
- uses: actions/upload-artifact@master
with:
name: 01-simple-example
path: 01-simple-example/doc.pdf
build-library-example:
runs-on: ubuntu-latest
strategy:
matrix:
version: [0.0.3-slim, 0.0.3-dev2019.11.16-slim, nightly]
steps:
- uses: actions/checkout@v1
- run: docker run --rm -v $(pwd):/satysfi amutake/satysfi:${{ matrix.version }} satysfi doc.saty
working-directory: ./02-library-example
- uses: actions/upload-artifact@master
with:
name: 02-library-example_${{ matrix.version }}
path: 02-library-example/doc.pdf
build-submodule-example:
runs-on: ubuntu-latest
strategy:
matrix:
version: [0.0.3-dev2019.11.16-slim, 0.0.3-dev2019.07.14-slim]
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- run: docker run --rm -v $(pwd):/satysfi amutake/satysfi:${{ matrix.version }} satysfi doc.saty
working-directory: ./03-submodule-example
- uses: actions/upload-artifact@master
with:
name: 03-submodule-example_${{ matrix.version }}
path: 03-submodule-example/doc.pdf
build-satyrographos-example:
runs-on: ubuntu-latest
strategy:
matrix:
version: [0.0.3-dev2019.11.16]
container:
image: amutake/satysfi:${{ matrix.version }}
steps:
- uses: actions/checkout@v1
- run: |
export HOME=/root # workaround
eval $(opam env)
opam update
opam install satysfi-grcnum
satyrographos install -library grcnum
satysfi doc.saty
working-directory: ./04-satyrographos-example
- uses: actions/upload-artifact@master
with:
name: 04-satyrographos-example_${{ matrix.version }}
path: 04-satyrographos-example/doc.pdf
build-custom-action-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./.github/actions/satysfi
with:
main: ./05-custom-action-example/doc.saty
packages: 'satysfi-fonts-theano satysfi-grcnum'
- uses: actions/upload-artifact@master
with:
name: 05-custom-action-example
path: 05-custom-action-example/doc.pdf
build-satyrographos-opam-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker run --rm -v $(pwd):/satysfi amutake/satysfi:opam-slim sh -c "opam pin add satysfi-example.dev . && satyrographos install && ./test/build.sh && opam pin add satysfi-example-doc.dev . --no-action && opam install satysfi-example-doc --deps-only && satysfi ./doc/manual.saty"
working-directory: ./06-satyrographos-opam-example
- run: docker run --rm -v $(pwd):/satysfi -w /satysfi alpine:3.12 sh -c "apk add --no-cache diff-pdf && ./test/check.sh"
working-directory: ./06-satyrographos-opam-example
- uses: actions/upload-artifact@v2
with:
name: 06-satyrographos-opam-example
path: 06-satyrographos-opam-example/doc/manual.pdf