Repository navigation
Conversation
Compile each preprints/<name>/source whose git tree hash differs from the one recorded in its preprint-<name> release, or that has no release yet, and publish the PDF as that release's asset. Pull requests build but do not publish. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds
.github/workflows/preprints.yml, which compiles a preprint's LaTeX only when its source folder has changed, or when it has never been compiled.How it works
preprints/*/sourcefolder, compares its git tree hash (git rev-parse HEAD:<dir>) with thesource-tree:line in the notes of thepreprint-<name>release. A missing release means the preprint has never been compiled. Folders without a top-level.texcontaining\documentclassare skipped (currentlyseven_sins).make compileif there is aMakefile(withuvinstalled, sorice_50_digitsregenerates its assets), otherwiselatexmk -pdf.main, replaces thepreprint-<name>release with the new PDF and records the tree hash. On pull requests the PDF is only attached to the run as an artifact.forceinput rebuilds everything.Because this PR changes the workflow file, it should build
rice_50_digitshere as a check. Merging it will publish the first release.Testing
actionlintpasses.rice_50_digitscame out as never compiled andseven_sinswas skipped. An empty list gives an empty matrix and skips the compile job.make compileofrice_50_digitstakes about 1m40s.🤖 Generated with Claude Code