Some checks failed
ci/crow/manual/build-all-versions-install-deps Pipeline was successful
ci/crow/manual/build-all-versions/8 Pipeline failed
ci/crow/manual/build-all-versions/2 Pipeline failed
ci/crow/manual/build-all-versions/7 Pipeline failed
ci/crow/manual/build-all-versions/1 Pipeline failed
ci/crow/manual/build-all-versions/4 Pipeline failed
ci/crow/manual/build-all-versions/5 Pipeline failed
ci/crow/manual/build-all-versions/6 Pipeline failed
ci/crow/manual/build-all-versions/3 Pipeline failed
ci/crow/manual/build-all-versions/9 Pipeline failed
ci/crow/manual/build-all-versions/10 Pipeline failed
88 lines
4.3 KiB
YAML
88 lines
4.3 KiB
YAML
### Required extra vars
|
|
# ARCH (amd64)
|
|
# OS (alpine)
|
|
# OS_VERSION (3.22)
|
|
# R_VERSION (4.5)
|
|
# woodpecker-cli pipeline create --var ARCH=amd64 --var OS=alpine --var OS_VERSION=3.22 --var R_VERSION=4.5 --var task=build-all --branch=main --log-level=info 7
|
|
# woodpecker-cli pipeline create --var ARCH=arm64 --var OS=alpine --var OS_VERSION=3.22 --var R_VERSION=4.5 --var task=build-all --branch=main --log-level=info 7
|
|
when:
|
|
- event: manual
|
|
evaluate: 'task == "build-all"'
|
|
|
|
skip_clone: true
|
|
|
|
matrix:
|
|
include:
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 1
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 2
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 3
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 4
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 5
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 6
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 7
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 8
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 9
|
|
- SPLIT_INTO: 10
|
|
SPLIT_INDEX: 10
|
|
|
|
depends_on:
|
|
- build-all-versions-install-deps
|
|
|
|
steps:
|
|
- name: 'Build binaries'
|
|
image: docker.io/devxygmbh/rpkgs-build-env-${OS}:${OS_VERSION}-${R_VERSION}
|
|
pull: true
|
|
environment:
|
|
RED_HAT_DEV_PW:
|
|
from_secret: RED_HAT_DEV_PW
|
|
HETZNER_S3_ACCESS_KEY_K3S:
|
|
from_secret: HETZNER_S3_ACCESS_KEY_K3S
|
|
HETZNER_S3_SECRET_KEY_K3S:
|
|
from_secret: HETZNER_S3_SECRET_KEY_K3S
|
|
PGPASS:
|
|
from_secret: PGPASS
|
|
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
|
|
NCPUS: 2
|
|
volumes:
|
|
- ${ARCH}-binaries-r-dep-cache-${OS}-${OS_VERSION//./}:/mnt/cache
|
|
commands:
|
|
- git clone -q https://pat-s:$$GIT_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
|
|
- R -q -e 'packageVersion("bincraft")'
|
|
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages
|
|
# Windows-only: 'RInno', 'KeyboardSimulator', 'R2PPT', 'RWinEdt', 'blatr', 'excel.link', 'spectrino', 'taskscheduleR', 'MDSGUI', 'BiplotGUI', 'R2wd', 'rFUSION', 'MediaNews', 'rFUSION', 'MediaNews'
|
|
- xvfb-run R -q -e "options(crayon.enabled = TRUE, Ncpus = $NCPUS, future.globals.onReference = NULL); pak::sysreqs_db_update(); source('local/packages-to-build.R'); sprintf('Total# of remaining packages:%s', length(pkgs)); pkgs <- split(pkgs, cut(seq_along(pkgs), Sys.getenv('SPLIT_INTO'), labels = F))[[Sys.getenv('SPLIT_INDEX')]]; sprintf('# of packages for this job:%s', length(pkgs)); pkgs = setdiff(pkgs, c('RInno', 'KeyboardSimulator', 'R2PPT', 'RWinEdt', 'blatr', 'excel.link', 'spectrino', 'taskscheduleR', 'MDSGUI', 'BiplotGUI', 'R2wd', 'rFUSION', 'MediaNews', 'doBy', 'IDPmisc', 'frailtypack', 'afex', 'FrF2', 'DoE.base', 'agricolae', 'doFuture', 'fscaret', 'PHYLOGR', 'seewave', 'pls', 'relaimpo', 'geepack', 'gggenes', 'NPCirc', 'repmis', 'PNDSIBGE', 'lidR', 'poismf', 'neonstore', 'MachineShop', 'mvst', 'MacBehaviour', 'mcmcderive', 'RGIFT', 'KnowBR', 'netmeta', 'spdep', 'sf', 'Rfast', 'compareGroups')); library(future); plan('multisession'); foo = lapply(pkgs, function(x) bincraft::build_binary_package(x, is_debug = FALSE, force = FALSE, s3_endpoint = 'https://hel1.your-objectstorage.com', s3_region = 'hel1', s3_bucket = 'devxy-r-package-binaries-hel1', s3_access_key_id = Sys.getenv('HETZNER_S3_ACCESS_KEY_K3S'), s3_secret_access_key = Sys.getenv('HETZNER_S3_SECRET_KEY_K3S'), metadata_db_host = 'r-binaries.devxy.io', metadata_db_name = 'build_metadata', metadata_db_table = 'single_builds', metadata_db_user = 'r_binaries', metadata_db_password = Sys.getenv('PGPASS'), metadata_db_sslmode = 'require', metadata_db_port = 15432, archive = TRUE, upload = TRUE, store_build_metadata = TRUE))"
|
|
# hanging: 'doBy', 'IDPmisc', 'frailtypack', 'afex'
|
|
backend_options:
|
|
kubernetes:
|
|
resources:
|
|
requests:
|
|
memory: 5Gi
|
|
cpu: 1000m
|
|
limits:
|
|
memory: 20Gi
|
|
cpu: 2000m
|
|
nodeSelector:
|
|
kubernetes.io/arch: ${ARCH}
|
|
tolerations:
|
|
- key: 'CI'
|
|
operator: 'Equal'
|
|
value: 'true'
|
|
effect: 'NoSchedule'
|