Fix articles being updated every time - #2
Closed
HOGGL wants to merge 1 commit into
Closed
Conversation
Author
|
Before closing in favor of #3 adding how I achieved caching: with:
path: repo
- name: Cache build artifacts
uses: actions/cache@v5
with:
path: |
repo/**/*.aux
repo/**/*.bbl
repo/**/*.fdb_latexmk
repo/**/*.out
repo/**/*.pdf
key: ${{ github.repository }}
- name: Compile briefs
uses: xu-cheng/latex-action@v4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
pdflatexcompiler adds creation date metadata to PDFs. This means the PDF has a different hash even if the source files are left unchanged, leading Git to think they've been updated.This pull request introduces the smallest change that fixes this but makes the dates meaningless (though I don't know of anything that relies on them).
The files are still compiled each time. A better way to fix this is to cache build artifacts between builds so that only the files that have changed are rebuilt. I can add that if you want but it may lead to issues that mean you have to clear the cache.
Thanks for all the work you do!