-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Cache apt packages #7978
Cache apt packages #7978
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ permissions: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
doc-type: ['HTML', 'EPUB', 'PDF'] | ||
|
@@ -33,10 +33,10 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
|
||
- name: Install packages | ||
run: | | ||
sudo apt update | ||
sudo apt install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-lang-all | ||
- uses: awalsh128/cache-apt-pkgs-action@v1 | ||
with: | ||
packages: texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-lang-all | ||
version: 1.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the version be ubuntu-24.04 instead of 1.0? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a user defined value. Can be anything you want, so I just used what's shown in their docs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm saying it's tied to this CI, right, so we want it to change on version change? I doubt we're updating ubuntu any time soon - not sure what happens when it needs to install newer versions. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have updated the cache version to match the OS |
||
|
||
- name: Build Docs | ||
run: | | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need
execute_install_scripts: true
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The install seemed to worked fine without it hence I didn't add it. These packages probably don't have any post install scripts.