metanorma / ci

Build scripts for Metanorma, works with continuous integration
3 stars 2 forks source link

Compile documents in separate jobs before sitegen #81

Closed CAMOBAP closed 1 year ago

CAMOBAP commented 2 years ago

Intro

To speed up our workflow we can do document compilation in separate jobs. The idea is described here https://code.dblock.org/2021/09/03/generating-task-matrix-by-looping-over-repo-files-with-github-actions.html also we already use this approach for mn-templates-* repos.

Open questions

CAMOBAP commented 2 years ago

@ronaldtse @opoudjis may I ask you to have a look at open questions, maybe you have answers or some general idea about the task?

ronaldtse commented 2 years ago

can metanorma site generate reuse previously compiled documents

Not right now. We have a long standing task here: https://github.com/metanorma/metanorma-cli/issues/232

how can we fetch all resources (relaton, ietf, fonts, anything else) once before run?

I don't think that is possible. Especially Relaton entries are only known during compilation.