add ci conf
This commit is contained in:
parent
60a6d81acc
commit
cb0cbbca7b
1 changed files with 42 additions and 0 deletions
42
.woodpecker/build.yaml
Normal file
42
.woodpecker/build.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
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]
|
||||
image: registry.access.redhat.com/ubi9
|
||||
commands:
|
||||
- subscription-manager register --username mail@devxy.io --password $RED_HAT_DEV_PW
|
||||
- subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
|
||||
- curl -s -O https://devxy-r-builds.s3.eu-central-003.backblazeb2.com/el9/R-4.0.5-1-1.aarch64.rpm
|
||||
- dnf install \
|
||||
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
|
||||
- dnf install -y R-4.0.5-1-1.aarch64.rpm
|
||||
- export PATH=/opt/R/4.0.5/bin:$PATH
|
||||
- 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 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE, PKG_SYSREQS_PLATFORM = "redhat-9"); pak::pak()'
|
||||
- R CMD INSTALL .
|
||||
- R -q -e 'pkgs = tools::CRAN_package_db()[[1]][1:4]; library(rBinaries); devtools::load_all(); future::plan("sequential", workers = 4); lapply(pkgs, function(x) build_binary_package(x, build_for_minor=FALSE))'
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 1500Mi
|
||||
cpu: 1000m
|
||||
limits:
|
||||
memory: 2000Mi
|
||||
cpu: 2000m
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: "arm64"
|
||||
Loading…
Reference in a new issue