How do I call sile when using GitHub Actions integration #1319
-
I tried adding to my workflow file
But then my makefile can’t find sile (I need to use the makefile, since it does a bit of setup for the *.sil file). Any idea how to make sile available in the PATH when using it this way (if possible at all). I’m currently using the PPA version, and I was happy with it until I realized that it used an old HarfBuzz version that has a specific issue my project is hitting (so I really need an up to date HarfBuzz version) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
The way the GitHub Action works it does not add The best way to proceed probably depends on how much other work you need to do in various steps. The most likely two directions I see might be these (but there are other options, if you give me more info about what needs to happen I'll help find a way...)
If you need more complex tooling, there are more options, just let me know what the needs are. |
Beta Was this translation helpful? Give feedback.
-
I'm a simple person. This is what my runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Linux dependencies
run: |
sudo apt-get install libcairo2-dev libfreetype6-dev
sudo add-apt-repository ppa:sile-typesetter/sile
sudo apt-get update
sudo apt-get install sile
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build font
run: |
make
- name: Build specimen & proof
run: sile specimen/specimen.sil |
Beta Was this translation helpful? Give feedback.
The way the GitHub Action works it does not add
sile
to the path of the host container. It may be possible to setup a job that does that, but currently only the container based step is supported.The best way to proceed probably depends on how much other work you need to do in various steps. The most likely two directions I see might be these (but there are other options, if you give me more info about what needs to happen I'll help find a way...)
Do your other work preparing the sil files first in other steps, then when the source file is ready to go, call the SILE action with the necessary path(s):