-
Notifications
You must be signed in to change notification settings - Fork 6
79 lines (66 loc) · 2.01 KB
/
integration.yaml
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
name: Build Typst document (CI)
on:
push:
paths:
- 'src/**/*.typ'
- 'examples/**/*.typ'
- 'test/**/*.typ'
- '**/*.yaml'
- '**/*.toml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Delete samples and test
run: |
rm -rf ./examples/*.pdf
rm -rf ./test/*.pdf
- uses: typst-community/setup-typst@v3
- name: Compile Typst examples to PDF
shell: bash
run: |
for archivo in $(ls -1 ./examples/*.typ); do
echo "$archivo"
typst compile $archivo --root .
if [ $? -eq 0 ]; then
echo "Compilación exitosa: $archivo"
else
echo "Error al compilar: $archivo"
fi
done
- name: Compile Typst test to PDF
shell: bash
run: |
for archivo in $(ls -1 ./test/**/*.typ); do
echo "$archivo"
typst compile $archivo --root .
if [ $? -eq 0 ]; then
echo "Compilación exitosa: $archivo"
else
echo "Error al compilar: $archivo"
fi
done
# - name: Delete Doc
# run: |
# rm -rf ./manual/*.pdf
# - name: Compile documentation to PDF
# shell: bash
# run: |
# typst compile ./manual/g-exam-manual.typ --root .
- name: Upload examples PDF file
uses: actions/upload-artifact@v4
with:
name: examples-g-exam
path: ./examples/*.pdf
- name: Upload examples PDF file
uses: actions/upload-artifact@v4
with:
name: test-g-exam
path: ./test/**/*.pdf
# - name: Upload documentation PDF file
# uses: actions/upload-artifact@v4
# with:
# name: document-g-exam
# path: ./manual/*.pdf