build 24h

This commit is contained in:
Patrick Schratz 2024-07-30 16:11:43 +02:00
commit 7068d6158f
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -6,7 +6,7 @@ skip_clone: true
matrix: matrix:
include: include:
- PLATFORM: rhel-9 - PLATFORM: rhel-9
BLOCK: 1057:1450 BLOCK: 1096:3000
# - PLATFORM: rhel-9 # - PLATFORM: rhel-9
# BLOCK: 1051:1450 # BLOCK: 1051:1450
# - PLATFORM: rhel-9 # - PLATFORM: rhel-9
@ -67,32 +67,32 @@ steps:
# cpu: 2000m # cpu: 2000m
nodeSelector: nodeSelector:
kubernetes.io/arch: 'arm64' kubernetes.io/arch: 'arm64'
- name: Upload PACKAGES files # - name: Upload PACKAGES files
secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token] # 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 # image: docker.io/pats22/arm-binaries-r-ubi9
pull: true # pull: true
environment: # environment:
GIT_USER: pat-s # GIT_USER: pat-s
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # # 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_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs # R_LIBS_USER: /mnt/cache/R-pkgs
volumes: # volumes:
- arm-binaries-r-dep-cache-rhel9:/mnt/cache # - arm-binaries-r-dep-cache-rhel9:/mnt/cache
commands: # commands:
# download latest package version (avoid having to rebuild image every time) # # 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 # # 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::local_install(); packageVersion("rBinaries")'
- R -q -e 'pak::pak(c("dyfanjones/s3fs", "pat-s/desc@description-from-remote", "pat-s/cranlike@s3"))' # - R -q -e 'pak::pak(c("dyfanjones/s3fs", "pat-s/desc@description-from-remote", "pat-s/cranlike@s3"))'
- cd /mnt/cache/packages # - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(rBinaries); upload_package_index()' # - R -q -e 'options(crayon.enabled = TRUE); library(rBinaries); upload_package_index()'
backend_options: # backend_options:
kubernetes: # kubernetes:
resources: # resources:
requests: # requests:
memory: 1000Mi # memory: 1000Mi
cpu: 0m # cpu: 0m
limits: # limits:
memory: 1300Mi # memory: 1300Mi
cpu: 1000m # cpu: 1000m
nodeSelector: # nodeSelector:
kubernetes.io/arch: 'arm64' # kubernetes.io/arch: 'arm64'