Git Product home page Git Product logo

Comments (6)

xu-cheng avatar xu-cheng commented on September 28, 2024 1

You can just run the action multiple times, like:

name: Build LaTeX document
on: [push]
jobs:
  build_latex:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v1
      - name: Compile LaTeX document
        uses: xu-cheng/latex-action@master
        with:
          root_file: doc1.tex
      - name: Compile LaTeX document
        uses: xu-cheng/latex-action@master
        with:
          root_file: doc2.tex

from latex-action.

krook1024 avatar krook1024 commented on September 28, 2024

I am interested too.

from latex-action.

antoniogamiz avatar antoniogamiz commented on September 28, 2024

I am interested too.

As the solution provided is not that useful I send you my own solution: https://github.com/antoniogamiz/cuarto-segundo-cuatrimestre/blob/master/.github/workflows/deploy-latex.yml and a bash script inside the docker container https://github.com/antoniogamiz/cuarto-segundo-cuatrimestre/blob/master/compile.sh

from latex-action.

kai-tub avatar kai-tub commented on September 28, 2024

I would also like to compile multiple files with this action.
The ability to use wildcards is very important for my use-case, as it allows me to not know the names of the *.tex files in my pipeline. I am developing a latex beamer template and one test is to simply build a document with all possible options. These documents are generated during the test process and I would like to build all of them at once, without always having to edit the *.yaml file.
I would like to help, but I have very little experience with bash.

I think this action would become even more awesome if wildcards would be supported. :)

from latex-action.

xu-cheng avatar xu-cheng commented on September 28, 2024

@kai-tub For your use case, I think it is more appropriate to use the docker image directly. For example:

name: Build LaTeX documents
on: [push]
jobs:
  build_latex:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v2
      - name: Compile LaTeX documents
        uses: docker://xucheng/texlive-full:latest
        run: |
          find . -name "*.tex" -exec latexmk -pdf -file-line-error -interaction=nonstopmode {} \;

from latex-action.

xu-cheng avatar xu-cheng commented on September 28, 2024

FYI, I have now added support to build multiple files with this action.

See https://github.com/xu-cheng/latex-action/releases/tag/1.3.0

from latex-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.