Giter Site home page Giter Site logo

typst-community / setup-hayagriva Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.07 MB

๐Ÿท๏ธ Installs the Hayagriva CLI for GitHub Actions

License: MIT License

JavaScript 100.00%
action bibliography citations github-action github-actions hayagriva setup-action typst typst-community

setup-hayagriva's People

Contributors

jcbhmr avatar

Stargazers

 avatar

Watchers

 avatar

setup-hayagriva's Issues

./setup-hayagriva doesn't work

Discussed in https://github.com/orgs/typst-community/discussions/7

Originally posted by agerlach February 6, 2024
I am having troubles getting the setup-hayagriva GH action to work. I'm not quite sure what the issue is. Any guidance is appreciated. FYI, I am relatively new to GH actions. I essentially forked this repo https://github.com/mintyfrankie/brilliant-CV and extended the workflow to use setup-hayagriva.

I am using the following in .github/workflows/compile.yml

name: Check PDF Compilation

on:
  push: {}
  pull_request: {}

jobs:
  build:
    name: compile-check
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          submodules: 'recursive'

      - name: Setup Typst
        uses: typst-community/setup-typst@v3

      - name: Setup Hayagriva
        uses: typst-community/[email protected]
            

      - run: hayagriva ./src/bibliography.bib |> ./src/bibliography.yml
      - run: typst compile cv.typ --font-path ./src/fonts
      - run: typst compile letter.typ --font-path ./src/fonts

      - name: Upload Artifacts
        uses: actions/upload-artifact@v3
        with:
          name: output
          path: ./*.pdf
          if-no-files-found: error

But I am getting the following error during the Setup Hayagriva stage.

Run typst-community/[email protected]
Run cargo-bins/cargo-binstall@main
Run curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
++ mktemp -d
+ cd /tmp/tmp.8zZ4YtDqmu
+ base_url=https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-
++ uname -s
+ os=Linux
+ '[' Linux == Darwin ']'
+ '[' Linux == Linux ']'
++ uname -m
+ machine=x8[6](https://github.com/agerlach/brilliant-CV/actions/runs/7801271579/job/21275970222#step:3:7)_64
+ target=x86_64-unknown-linux-musl
+ '[' x86_64 == armv[7](https://github.com/agerlach/brilliant-CV/actions/runs/7801271579/job/21275970222#step:3:9) ']'
+ url=https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
+ tar -xvzf -
+ curl -L --proto =https --tlsv1.2 -sSf https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
cargo-binstall
+ ./cargo-binstall -y --force cargo-binstall
 WARN Failed to retrieve token from `gh auth token` err=Custom { kind: Other, error: "process exited with `exit status: 1`" }
 WARN Failed to read git credential file
 INFO resolve: Resolving package: 'cargo-binstall'
 INFO resolve: Verified signature for package 'cargo-binstall': gh=cargo-bins/cargo-binstall git=3f271cce2b581890bb2[11](https://github.com/agerlach/brilliant-CV/actions/runs/7801271579/job/21275970222#step:3:14)a740bfde8073f[15](https://github.com/agerlach/brilliant-CV/actions/runs/7801271579/job/21275970222#step:3:18)0150 ts=2024-02-04T02:[16](https://github.com/agerlach/brilliant-CV/actions/runs/7801271579/job/21275970222#step:3:19):15.660Z run=7770957747
 WARN The package cargo-binstall v1.6.2 (x86_64-unknown-linux-gnu) has been downloaded from github.com
 INFO This will install the following binaries:
 INFO   - cargo-binstall (cargo-binstall -> /home/runner/.cargo/bin/cargo-binstall)
 INFO Installing binaries...
 INFO Done in 1.8[25](https://github.com/agerlach/brilliant-CV/actions/runs/7801271579/job/21275970222#step:3:28)876665s
+ CARGO_HOME=/home/runner/.cargo
+ [[ :/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: == *\:\/\h\o\m\e\/\r\u\n\n\e\r\/\.\c\a\r\g\o\/\b\i\n\:* ]]
Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/brilliant-CV/brilliant-CV/setup-hayagriva'. Did you forget to run actions/checkout before running your local action?

cc original poster @agerlach

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.