Conversation
|
|
…-os-arch.ext filenames Co-authored-by: yihui <163582+yihui@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor build jobs to consolidate common steps and update TinyTeX binaries
Refactor build.yaml: consolidate common steps into composite action, adopt new TinyTeX-N-os-arch.ext filenames
Mar 5, 2026
…scovery Co-authored-by: yihui <163582+yihui@users.noreply.github.com>
Copilot
AI
changed the title
Refactor build.yaml: consolidate common steps into composite action, adopt new TinyTeX-N-os-arch.ext filenames
Refactor build.yaml: composite actions for setup/upload, new TinyTeX-N-os-arch.ext filenames
Mar 5, 2026
yihui
approved these changes
Mar 5, 2026
This was referenced Mar 6, 2026
2 tasks
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.
Two improvements to the build workflow: consolidate duplicated steps across
build-*jobs using composite actions, and adopt a new OS/arch-aware naming scheme for release binaries with backward-compatible copies.Composite actions
setup-r-for-buildExtracts the five setup steps (checkout, Pandoc, R, R deps,
update.packages()) shared across all fourbuild-*jobs. Also adds a post-checkoutrm -f TinyTeX-*.*cleanup as a safety measure.upload-bundlesReplaces all per-job
nick-fields/retry@v3upload steps. Dynamically discovers assets in the working directory and uploads them — no hardcoded filename lists:Implements 5-attempt retry with 10 s back-off via a portable
shell: bashloop (works on Windows via Git Bash). Eachbuild-*job andtinitexnow ends with:New binary naming scheme
Format:
TinyTeX-{N}-{os}-{arch}.{ext}, where arch is omitted forwindows/darwin:build-windowsTinyTeX-{0,1,}-windows.exe,TinyTeX-2-windows.exeTinyTeX-{0,1,}.zip,TinyTeX-2.exebuild-linuxTinyTeX-{0,1,2,}-linux-x86_64.tar.xzTinyTeX-{0,1,2,}.tar.gzbuild-linux-arm64TinyTeX-{0,1,2,}-linux-arm64.tar.xzTinyTeX-{0,1,2,}-arm64.tar.gzbuild-macTinyTeX-{0,1,2,}-darwin.tar.xzTinyTeX-{0,1,2,}.tgzAll
*nixarchives use xz compression uniformly. Backward-compat copies arecprenames —tar xfauto-detects compression regardless of extension.tinitexjobAdded
actions/checkout@v4(required to resolve./.github/actions/upload-bundles). Updated repackage step to place output files in the workspace root (mv ... ../..) so the upload composite action finds them without acd tinitex/workaround.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.