Forum How do I...?

Installing prince via GitHub Actions

ebaum
I'm running a CI script via GitHub Actions (Ubuntu 22.04) and would like to install prince, as some unit tests rely on it.

Does anyone have any tips about how to do that? I believe most prince installs I've done in the past have been interactive. Does prince have a silent install option?

Thanks!

Eric Baumgartner
Inquirium

mikeday
If it's running on Ubuntu then perhaps you could install the .deb package?
csant
We use Prince in Github actions and install it this way:

    curl https://www.princexml.com/download/prince_15.3-1_ubuntu22.04_amd64.deb -O
    sudo apt install ./prince_15.3-1_ubuntu22.04_amd64.deb

Edited by csant

ebaum
Thanks for much for the replies! I'll give that a go.

Mike, does Prince have any issue with our pulling a file from princexml.com every time CI runs? If so I'm happy to cache a copy somewhere I control and use that instead.

Eric Baumgartner
Inquirium

mikeday
It might be more efficient and reliable to cache a local copy instead of downloading the file each time, unless you also wish to be testing our website. :D