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

typst_asset_name not matching latest Typst releases #8

Closed
mintyfrankie opened this issue Jun 25, 2023 · 2 comments · Fixed by #9
Closed

typst_asset_name not matching latest Typst releases #8

mintyfrankie opened this issue Jun 25, 2023 · 2 comments · Fixed by #9
Assignees

Comments

@mintyfrankie
Copy link
Contributor

Description
When running the Github action with flag runs-on: ubuntu-latest, the workflow returns error Error: Asset with name typst-x86_64-unknown-linux-gnu.tar.gz not found!

How to reproduce
With the code below:

name: Compile PDFs

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v3

    - name: Setup Typst
      uses: yusancky/setup-typst@v1
      id: setup-typst
      with:
        version: 'v0.5.0'
    - run: typst compile cv.typ
    - run: typst compile letter.typ

Potential reason
Recent Typst releases have renamed the asset file from typst-x86_64-unknown-linux-gnu.tar.gz to typst-x86_64-unknown-linux-musl.tar.xz

@yusancky yusancky self-assigned this Jun 26, 2023
@yusancky yusancky pinned this issue Jun 27, 2023
yusancky added a commit that referenced this issue Jun 28, 2023
@yusancky
Copy link
Member

Thank you very much for raising this issue!


I have addressed this aspect in #9.

Note
However, due to some problems, I am not able to adapt older versions of Typst (i.e. versions before v0.3.0) at the moment.

So, if you need to use v0.5.0, you only need to change the action version number.

- uses: yusancky/setup-typst@v1
+ uses: yusancky/setup-typst@v2

@mintyfrankie
Copy link
Contributor Author

Hi @yusancky thanks for the shift fixing!

I will open a quick PR very soon for another nice-to-have feature, it'd be great if you can take a look :)

@yusancky yusancky unpinned this issue Jun 29, 2023
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.

2 participants