build
This commit is contained in:
parent
9b4f69a79a
commit
42d6bea044
1 changed files with 313 additions and 318 deletions
53
.woodpecker/alpine-321-amd64-install-deps.yaml
Normal file
53
.woodpecker/alpine-321-amd64-install-deps.yaml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
when:
|
||||
- event: manual
|
||||
evaluate: 'build == "all"'
|
||||
- event: manual
|
||||
evaluate: 'build == "alpine-321-amd64"'
|
||||
- event: manual
|
||||
evaluate: 'build == "alpine-321-amd64-1"'
|
||||
- event: manual
|
||||
evaluate: 'build == "all-amd64"'
|
||||
|
||||
skip_clone: true
|
||||
|
||||
steps:
|
||||
- name: 'Install common R deps'
|
||||
image: docker.io/devxygmbh/amd64-binaries-r-alpine-321
|
||||
pull: true
|
||||
environment:
|
||||
GIT_RO_TOKEN:
|
||||
from_secret: git_ro_token
|
||||
GITHUB_PAT:
|
||||
from_secret: github_pat
|
||||
# normal env vars
|
||||
GIT_USER: pat-s
|
||||
# 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_LIBS_USER: /mnt/cache/R-pkgs
|
||||
CCACHE_DIR: /mnt/cache/ccache
|
||||
PLATFORM: alpine-321
|
||||
volumes:
|
||||
- amd64-binaries-r-dep-cache-alpine-321:/mnt/cache
|
||||
commands:
|
||||
- git clone https://pat-s:$$GIT_RO_TOKEN@git.devxy.io/devxy/r-pkg-binaries.git .
|
||||
- rm -rf /mnt/cache/R-pkgs/00LOCK-r-pkg-binaries /mnt/cache/R-pkgs/00LOCK-bincraftR /mnt/cache/R-pkgs/00LOCK-pak /mnt/cache/pkgcache/R/pkgcache /mnt/cache/pkgcache/R/pkgcache /mnt/cache/R-pkgs/pkgcache /mnt/cache/R-pkgs/bincraftR /mnt/cache/pkgcache/R/pkgcache /mnt/cache/R-pkgs/pkgcache
|
||||
- R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'
|
||||
- R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")'
|
||||
- R -q -e 'packageVersion("bincraftR")'
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 1000Mi
|
||||
cpu: 1000m
|
||||
limits:
|
||||
memory: 1000Mi
|
||||
cpu: 2000m
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
node.kubernetes.io/instance-type: AX42
|
||||
tolerations:
|
||||
- key: 'CI'
|
||||
operator: 'Equal'
|
||||
value: 'true'
|
||||
effect: 'NoSchedule'
|
||||
Loading…
Reference in a new issue