Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot specify --font-path #9

Open
msakuta opened this issue Sep 3, 2023 · 3 comments · May be fixed by #10
Open

Cannot specify --font-path #9

msakuta opened this issue Sep 3, 2023 · 3 comments · May be fixed by #10

Comments

@msakuta
Copy link

msakuta commented Sep 3, 2023

Hi, it seems this example action in the description here doesn't work.

      with:
        source_file: euler-lagrange-jp.typ
        - name: Typst
          uses: lvignoli/typst-action@main
          with:
            source_file: main.typ
            options: |
              --font-path
              fonts

In my pipeline, the actual command executed seems like this (omitting irrelevant parameters to docker)

7   docker <blah..blah...> "euler-lagrange-jp.typ" "--font-path
8   fonts
9   "

which suggests that it's supposed to be like below, but the newline separated parameters actually go to the next command.

7   docker <blah..blah...> "euler-lagrange-jp.typ" "--font-path" "fonts"
@lvignoli
Copy link
Owner

Hi @msakuta,
The action is out of date with the current typst CLI.
I need to take some time to update, but this will not happen in the coming weeks.
In the meantime, I suggest you try setup-typst as a replacement :)

@leana8959 leana8959 linked a pull request Mar 3, 2024 that will close this issue
@leana8959
Copy link

Hello,

I just opened a PR, I basically just swapped the option so that options comes after the "compile filename.typ" part.

Hope this helps!

nyeong added a commit to nyeong/resume that referenced this issue Mar 17, 2024
from: lvignoli/typst-action@main
into: typst-community/setup-typst@v3
why: lvignoli/typst-action#9 (comment)
nyeong added a commit to nyeong/resume that referenced this issue Mar 17, 2024
from: lvignoli/typst-action@main
into: typst-community/setup-typst@v3
why: lvignoli/typst-action#9 (comment)
@Lypsilonx
Copy link

Lypsilonx commented May 17, 2024

You can specify the environment variable like this:

- name: Typst
   uses: lvignoli/typst-action@main
      env:
         TYPST_FONT_PATHS: ./fonts
      with:
          source_file: |
             ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants