From 5048a14f17b1bf6e9da6cd00a2a9b18f0f41130a Mon Sep 17 00:00:00 2001 From: pat-s Date: Thu, 5 Sep 2024 10:35:50 +0200 Subject: [PATCH] speedup initial pkg install --- .woodpecker/process_cran_updates.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.woodpecker/process_cran_updates.yaml b/.woodpecker/process_cran_updates.yaml index 30846c9..257dd50 100644 --- a/.woodpecker/process_cran_updates.yaml +++ b/.woodpecker/process_cran_updates.yaml @@ -7,10 +7,21 @@ skip_clone: true matrix: include: - PLATFORM: redhat-9 + PKGS_ID: rhel9 + ARCH: arm64 - PLATFORM: redhat-8 + PKGS_ID: rhel8 + ARCH: arm64 - PLATFORM: ubuntu-2404 + PKGS_ID: noble + ARCH: arm64 - PLATFORM: ubuntu-2204 + PKGS_ID: jammy + ARCH: arm64 - PLATFORM: alpine-320 + PKGS_ID: alpine320 + ARCH: arm64 + steps: - name: 'Processing Updates: (${PLATFORM})' secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token, GITHUB_PAT] @@ -31,7 +42,7 @@ steps: - 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 /mnt/cache/R-pkgs/00LOCK-bincraftR /opt/R/*/lib/R/library/RPostgres /mnt/cache/R-pkgs/00LOCK-RPostgres - rm -rf /mnt/cache/R-pkgs/RPostgres /mnt/cache/pkgcache/R/pkgcache - - R -q -e 'devtools::install(); packageVersion("bincraftR")' + - R -q -e 'options(Ncpus = 4, repos = structure(c(devxy = "https://cran.devxy.io/${ARCH}/${PKGS_ID}/latest", CRAN = "https://cloud.r-project.org"))); devtools::install(quiet = TRUE); packageVersion("bincraftR")' - mkdir -p /root/.R && /bin/bash -c 'echo -e "CXX_STD = CXX14\nCC=ccache gcc\nCPP=ccache gcc\nCXX=ccache g++\nCXX11=ccache g++\nCXX14=ccache g++\nCXX17=ccache g++\nF77=ccache /usr/bin/gfortran\nFC=ccache /usr/bin/gfortran" > /root/.R/Makevars' - mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages # set additional repos: important as otherwise some packages cannot be resolved (e.g. INLA). Also: setting our own binary repos so we can make use of them for dep installation at some point