do not persist binaries after build
This commit is contained in:
parent
f1683f5855
commit
b589e15764
3 changed files with 4 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ steps:
|
|||
# Hmisc -> ABCanalysis
|
||||
- R -q -e 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE, PKG_SYSREQS_PLATFORM = "redhat-9"); pak::pak(c("Hmisc", "pls", "abd", "doRNG", "devtools"))'
|
||||
# more complicated system dependencies which pak cannot resolve
|
||||
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/binaries /mnt/cache/ccache
|
||||
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/binaries /mnt/cache/ccache /mnt/cache/packages
|
||||
# set additional repos: important as otherwise some packages cannot be resolved (e.g. INLA)
|
||||
- R -q -e 'options(crayon.enabled = TRUE, Ncpus = 6, future.globals.onReference = "error", repos = structure(c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"))); pkgs = tools::CRAN_package_db()[[1]][29:40]; library(rBinaries); future::plan("multisession", workers = 5, rscript_startup = quote(options(crayon.enabled = TRUE))); foo = lapply(pkgs, function(x) build_binary_package(x, build_for_minor=FALSE, debug = FALSE, force = TRUE))'
|
||||
backend_options:
|
||||
|
|
@ -72,7 +72,7 @@ steps:
|
|||
# rscript_startup arg: required to pass down global option to future workers https://github.com/HenrikBengtsson/future/issues/134#issuecomment-2245666169
|
||||
- R -q -e 'pak::local_install(); packageVersion("rBinaries")'
|
||||
- R -q -e 'pak::pak(c("dyfanjones/s3fs", "pat-s/desc@description-from-remote", "pat-s/cranlike@s3"))'
|
||||
- cd /mnt/cache/binaries/__linux__/rhel9/latest/src/contrib
|
||||
- cd /mnt/cache/packages
|
||||
- R -q -e 'options(crayon.enabled = TRUE); library(rBinaries); upload_package_index()'
|
||||
backend_options:
|
||||
kubernetes:
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#' @export
|
||||
build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
||||
r_minor_version = NULL, build_for_minor = TRUE,
|
||||
local_build_root = "/mnt/cache/binaries/",
|
||||
local_build_root = "/root",
|
||||
local_clone_dir = "/tmp",
|
||||
platform = "redhat-9",
|
||||
install_system_dependencies = TRUE,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ upload_single_binary_to_s3 <- function(
|
|||
endpoint = "https://s3.eu-central-003.backblazeb2.com",
|
||||
region = "eu-central-003",
|
||||
bucket = "devxy-arm64-r-binaries",
|
||||
local_build_root = "/mnt/cache/binaries/",
|
||||
local_build_root = "/root",
|
||||
codename = NULL,
|
||||
package_name, tag,
|
||||
r_minor_version = NULL, build_for_minor = FALSE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue