speedup initial pkg install
This commit is contained in:
parent
87d8958b47
commit
5048a14f17
1 changed files with 12 additions and 1 deletions
|
|
@ -7,10 +7,21 @@ skip_clone: true
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- PLATFORM: redhat-9
|
- PLATFORM: redhat-9
|
||||||
|
PKGS_ID: rhel9
|
||||||
|
ARCH: arm64
|
||||||
- PLATFORM: redhat-8
|
- PLATFORM: redhat-8
|
||||||
|
PKGS_ID: rhel8
|
||||||
|
ARCH: arm64
|
||||||
- PLATFORM: ubuntu-2404
|
- PLATFORM: ubuntu-2404
|
||||||
|
PKGS_ID: noble
|
||||||
|
ARCH: arm64
|
||||||
- PLATFORM: ubuntu-2204
|
- PLATFORM: ubuntu-2204
|
||||||
|
PKGS_ID: jammy
|
||||||
|
ARCH: arm64
|
||||||
- PLATFORM: alpine-320
|
- PLATFORM: alpine-320
|
||||||
|
PKGS_ID: alpine320
|
||||||
|
ARCH: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Processing Updates: (${PLATFORM})'
|
- name: 'Processing Updates: (${PLATFORM})'
|
||||||
secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token, GITHUB_PAT]
|
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 .
|
- 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/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
|
- 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 /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
|
- 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
|
# 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue