refactor(ci): use multi-R-version images in update-package-index workflows
Drop the R-version suffix from each image tag, add an explicit
R_VERSION env var per file, and invoke R via
/opt/R/${R_VERSION}/bin/R at every call site.
Also repoints every update-package-index workflow at the image that
matches its own platform (was previously pinned to
build-env-ubuntu:noble-4.4 / noble-4.5 regardless of platform).
This commit is contained in:
parent
816b99cfaf
commit
6f1c421434
1 changed files with 97 additions and 83 deletions
|
|
@ -13,7 +13,7 @@ depends_on:
|
|||
|
||||
steps:
|
||||
- name: Upload PACKAGES files
|
||||
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4
|
||||
image: reg.devxy.io/rpkgs/build-env-ubuntu:jammy
|
||||
pull: true
|
||||
environment:
|
||||
RED_HAT_DEV_PW:
|
||||
|
|
@ -40,15 +40,16 @@ steps:
|
|||
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
|
||||
R_PKG_CACHE_DIR: /mnt/cache/pkgcache
|
||||
R_LIBS_USER: /mnt/cache/R-pkgs
|
||||
R_VERSION: 4.4.3
|
||||
commands:
|
||||
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
|
||||
- rm -rf /mnt/cache/packages/*
|
||||
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
|
||||
- R -q -e 'pak::pak("pat-s/cranlike@s3")'
|
||||
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
|
||||
- R -q -e 'packageVersion("bincraft")'
|
||||
- /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
|
||||
- /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
|
||||
- /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
|
||||
- /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
|
||||
- cd /mnt/cache/packages
|
||||
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "jammy", 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"))'
|
||||
- /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "jammy", 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"))'
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
|
|
|
|||
Loading…
Reference in a new issue