This commit is contained in:
Patrick Schratz 2024-07-31 17:26:43 +02:00
commit c74b7c0625
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -5,16 +5,17 @@ skip_clone: true
matrix:
include:
# - PLATFORM: redhat-9
# BLOCK: 1:1000
# - PLATFORM: redhat-8
# BLOCK: 1:1000
- PLATFORM: redhat-9
BLOCK: 1533:3500
# NB: build 435 -447
- PLATFORM: redhat-8
BLOCK: 1048:2500
- PLATFORM: ubuntu-2404
BLOCK: 1:1000
# - PLATFORM: ubuntu-2204
# BLOCK: 1:1000
BLOCK: 1499:1500
- PLATFORM: ubuntu-2204
BLOCK: 1533:2500
steps:
- name: "Build binaries (${PLATFORM}: ${BLOCK})"
- name: 'Build binaries (${PLATFORM}: ${BLOCK})'
secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token]
image: docker.io/pats22/arm-binaries-r-${PLATFORM}
pull: true
@ -31,7 +32,7 @@ steps:
commands:
# download latest package version (avoid having to rebuild image every time)
# rscript_startup arg: required to pass down global option to future workers https://github.com/HenrikBengtsson/future/issues/134#issuecomment-2245666169
- git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/arm64-r-binaries.git .
- git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/arm64-r-binaries.git .
- rm -rf /mnt/cache/R-pkgs/00LOCK-arm64-r-binaries
- R -q -e 'pak::pak("dyfanjones/s3fs")'
- R -q -e 'pak::local_install(); packageVersion("rBinaries")'
@ -45,7 +46,7 @@ steps:
- 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]][${BLOCK}]; library(rBinaries); future::plan("multisession", workers = 6, rscript_startup = quote(options(crayon.enabled = TRUE))); foo = lapply(pkgs, function(x) build_binary_package(x, build_for_minor=FALSE, debug = FALSE, force = TRUE, platform = "${PLATFORM}"))'
backend_options:
kubernetes:
### PROD
### PROD
resources:
requests:
memory: 25Gi
@ -63,6 +64,11 @@ steps:
# cpu: 2000m
nodeSelector:
kubernetes.io/arch: 'arm64'
tolerations:
- key: "CI"
operator: "Equal"
value: "true"
effect: "NoSchedule"
# - name: Upload PACKAGES files
# secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token]
# image: docker.io/pats22/arm-binaries-r-ubi9