ci: bump bincraft to 4.2.1 and scope multi-R loops to versioned R dirs

- Pin bincraft v4.2.0 -> v4.2.1 (per-minor archive.rds/index fix) across the
  process-updates, weekly-rebuild and archive workflows.
- Restrict the per-R-minor build and index loops to /opt/R/[0-9]* so the
  `current` symlink dir is not treated as a distinct minor (avoids double-
  building a minor and writing a bogus contrib/current/ index slot).
This commit is contained in:
Patrick Schratz 2026-06-14 13:02:47 +02:00
commit f51617018d
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -62,7 +62,7 @@ steps:
GIT_USER: pat-s
R_VERSION: 4.5.3
commands:
- /opt/R/$R_VERSION/bin/R -q -e 'if (!requireNamespace("bincraft", quietly = TRUE) || packageVersion("bincraft") != "4.2.0") pak::pak("git::https://codefloe.com/rpkgs/bincraft.git@v4.2.0", dependencies = TRUE)'
- /opt/R/$R_VERSION/bin/R -q -e 'if (!requireNamespace("bincraft", quietly = TRUE) || packageVersion("bincraft") != "4.2.1") pak::pak("git::https://codefloe.com/rpkgs/bincraft.git@v4.2.1", dependencies = TRUE)'
- /opt/R/$R_VERSION/bin/R -q -e 'packageVersion("bincraft")'
- /opt/R/$R_VERSION/bin/R -q -e 'bincraft::process_unarchived_pkgs(Sys.getenv("CODENAME"), Sys.getenv("ARCH"), workers = 2L)'
backend_options: