chore: resolve latest bincraft release dynamically
Replace the hardcoded bincraft pin (@vX.Y.Z, repeated across every .crow workflow and the build-one image) with local/install-bincraft.R, which lists the remote tags via git ls-remote, picks the highest vX.Y.Z, and installs it with pak (idempotent on the git ref). Now a new bincraft release is picked up automatically on the next run -- no more editing the version in many places. Filtering/sorting is done in R (not git --sort / refspec) for portable behaviour, and GIT_TERMINAL_PROMPT=0 keeps non-interactive runs from hanging.
This commit is contained in:
parent
b4ec6291a9
commit
207f799072
1 changed files with 62 additions and 8 deletions
|
|
@ -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.4.2") pak::pak("git::https://codefloe.com/rpkgs/bincraft.git@v4.4.2", dependencies = TRUE)'
|
||||
- /opt/R/$R_VERSION/bin/Rscript local/install-bincraft.R
|
||||
- /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"), s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"), workers = 2L)'
|
||||
backend_options:
|
||||
|
|
|
|||
Loading…
Reference in a new issue