代码之家  ›  专栏  ›  技术社区  ›  user2609605

github上的CI:日志不完整

  •  0
  • user2609605  · 技术社区  · 11 月前

    这是关于CI的 https://github.com/Reissner/latex-maven-plugin .

    在那里你可以看到完整的 ./.github/workflows/maven.yml 配置工作流。 许多事情并不像我预期的那样奏效。 例如:

    [INFO] Processing LaTeX file 'src/site/tex/./docClasses/useBeamerPres.tex'. 
    [INFO] Skipping targets [html]. 
    [INFO] Checking source. 
    ++pdf TS meta: 0
    ++pdf TS file: 1724789480
    [INFO] Process with timestamp 1970-01-01T00:00:00Z (0sec)
    [INFO] Converting into pdf format. 
    Error:  EEX01: Running lualatex failed with return code 1. 
    Error:  EEX02: Running lualatex failed: No target file 'useBeamerPres.pdf' written. 
    Error:  EAP01: Running lualatex failed. Errors logged in 'useBeamerPres.log'. 
    Error:  EEX01: Running lualatex failed with return code 1. 
    Error:  EEX02: Running lualatex failed: No target file 'useBeamerPres.pdf' written. 
    Error:  EAP01: Running lualatex failed. Errors logged in 'useBeamerPres.log'. 
    

    这意味着 lualatex useBeamerPres.tex 无法创建 useBeamerPres.pdf . 自从 lualatex 即使在出现错误的情况下也会创建日志文件, 我决定将日志文件打印到控制台上。 相应的线条 maven.yml

        - name: write logs
          run: cat src/site/tex/./docClasses/useBeamerPres.log
          working-directory: ./maven-latex-plugin
    

    但文件似乎被截断了,所以我无法找出问题所在。

    最后一行是

     \pgfmath@stack@operand=\toks24
    \pgfmath@stack@operation=\toks25
    )
    (/opt/hostedtoolcache/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.
    code.tex)
    

    我看不到错误的迹象。 还有什么可能出错?

    0 回复  |  直到 11 月前
        1
  •  1
  •   Delta George    11 月前

    这是预期的行为。每当一个步骤以非零退出代码完成时,所有后续步骤都会被跳过。如果你想执行你的 write logs 步骤,您需要通过告诉GitHub始终运行它来更改此默认行为:

    - name: write logs
      if: always()
      run: cat src/site/tex/./docClasses/useBeamerPres.log
      working-directory: ./maven-latex-plugin