when: event: [push, cron, manual] # matrix: # include: # - PLATFORM: rhel-9 # PLATFORM_ID: el9 # - PLATFORM: centos-8 # PLATFORM_ID: el8 # - PLATFORM: ubuntu-2204 # PLATFORM_ID: 2204 # - PLATFORM: ubuntu-2404 # PLATFORM_ID: 2404 # - PLATFORM: opensuse-155 # PLATFORM_ID: suse155 steps: - name: Build 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 pull: true environment: GIT_USER: pat-s # PY_COLORS: 1 commands: # - echo $TERM # download latest package version (avoid having to rebuild image every time) - git config credential.helper '!f() { sleep 1; echo "username=$${GIT_USER}"; echo "password=$${GIT_RO_TOKEN}"; }; f' - git clone https://git.devxy.io/devxy/arm64-r-binaries.git && cd arm64-r-binaries - R CMD INSTALL . - R -q -e 'cli::cli_sitrep()' - R -q -e 'options(crayon.enabled = TRUE); pkgs = tools::CRAN_package_db()[[1]][1:2]; library(rBinaries); future::plan("multicore", workers = 2); lapply(pkgs, function(x) build_binary_package(x, build_for_minor=FALSE, debug = FALSE, force = TRUE))' backend_options: kubernetes: resources: requests: memory: 1500Mi cpu: 1000m limits: memory: 4000Mi cpu: 2000m nodeSelector: kubernetes.io/arch: 'arm64'