@@ -12,43 +12,142 @@ env:
1212 XIMERA_URL : " https://xerxes.ximera.org/"
1313 XM_TO_PROCESS : " testxourse.tex"
1414
15- # YAML anchor for the container image
16- x-container : &x-container
17- image : ghcr.io/ximeraproject/ximeralatex:v2.7.5fix2
18-
1915jobs :
16+ # dummy job to define the container anchor
17+ _container : &x-container
18+ image : ghcr.io/ximeraproject/ximeralatex:v2.7.5fix2
19+
2020 build-ximera-pdfexport :
2121 name : Build pdfexport
2222 runs-on : ubuntu-latest
2323 container : *x-container
24+ permissions :
25+ actions : read
26+ contents : read
27+ packages : write
28+
2429 steps :
2530 - uses : actions/checkout@v4
31+ with :
32+ fetch-depth : 0
33+
34+ - uses : actions/cache/restore@v4
35+ with :
36+ path : |
37+ build/**
38+ **/*.pdf
39+ **/*.html
40+ **/*.aux
41+ **/*.log
42+ **/*.toc
43+ **/*.xref
44+ **/*.svg
45+ **/*.png
46+ !.git/**
47+ !.github/**
48+ key : ximeraPDF-${{ github.ref_name }}-${{ github.sha }}
49+ restore-keys : |
50+ ximeraPDF-${{ github.ref_name }}-
51+ ximeraPDF-
52+
2653 - run : ./xmScripts/xmlatex bake --compile pdfexport -j 5 $XM_TO_PROCESS
2754
55+ - uses : actions/cache/save@v4
56+ with :
57+ path : |
58+ build/**
59+ **/*.pdf
60+ **/*.html
61+ **/*.aux
62+ **/*.log
63+ **/*.toc
64+ **/*.xref
65+ **/*.svg
66+ **/*.png
67+ !.git/**
68+ !.github/**
69+ key : ximeraPDF-${{ github.ref_name }}-${{ github.sha }}
70+
71+ - uses : actions/upload-artifact@v4
72+ with :
73+ name : pdfexport
74+ path : .
75+
2876 build-ximera-htmlexport :
2977 name : Build htmlexport
3078 needs : build-ximera-pdfexport
3179 runs-on : ubuntu-latest
3280 container : *x-container
81+ permissions :
82+ actions : read
83+ contents : read
84+ packages : write
85+
3386 steps :
3487 - uses : actions/checkout@v4
88+ with :
89+ fetch-depth : 0
90+
91+ - uses : actions/cache/restore@v4
92+ with :
93+ path : |
94+ build/**
95+ **/*.pdf
96+ **/*.html
97+ **/*.aux
98+ **/*.log
99+ **/*.toc
100+ **/*.xref
101+ **/*.svg
102+ **/*.png
103+ !.git/**
104+ !.github/**
105+ key : ximeraPDF-${{ github.ref_name }}-${{ github.sha }}
106+ restore-keys : |
107+ ximeraPDF-${{ github.ref_name }}-
108+ ximeraPDF-
109+
35110 - run : ./xmScripts/xmlatex bake --compile htmlexport -j 5 $XM_TO_PROCESS
36111
112+ - uses : actions/cache/save@v4
113+ with :
114+ path : |
115+ build/**
116+ **/*.pdf
117+ **/*.html
118+ **/*.aux
119+ **/*.log
120+ **/*.toc
121+ **/*.xref
122+ **/*.svg
123+ **/*.png
124+ !.git/**
125+ !.github/**
126+ key : ximeraHTML-${{ github.ref_name }}-${{ github.sha }}
127+
128+ - uses : actions/upload-artifact@v4
129+ with :
130+ name : htmlexport
131+ path : .
132+
37133 build-ximera-serve :
38134 name : Serve
39135 needs : build-ximera-htmlexport
40136 runs-on : ubuntu-latest
41137 container : *x-container
138+ permissions :
139+ actions : read
140+ contents : read
141+ packages : write
142+
42143 steps :
43144 - uses : actions/checkout@v4
44- - run : ./xmScripts/xmlatex name
45- - run : ./xmScripts/xmlatex frost $XM_TO_PROCESS
46- - run : ./xmScripts/xmlatex serve $XM_TO_PROCESS
145+ with :
146+ fetch-depth : 0
47147
48- publish-ximera :
49- name : Publish
50- needs : build-ximera-serve
51- runs-on : ubuntu-latest
52- container : *x-container
53- steps :
54- - run : ./xmScripts/xmlatex serve -t $XM_TO_PROCESS
148+ - uses : actions/cache/restore@v4
149+ with :
150+ path : |
151+ build/**
152+ **/*.pdf
153+ **/*.html
0 commit comments