refactor: move bincraft install to separate pre-matrix pipeline step
Some checks failed
ci/crow/manual/build-all-versions-amd64/1 Pipeline is pending
ci/crow/manual/build-all-versions-amd64/2 Pipeline is pending
ci/crow/manual/build-all-versions-amd64/3 Pipeline is pending
ci/crow/manual/build-all-versions-amd64/4 Pipeline is pending
ci/crow/manual/build-all-versions-amd64/5 Pipeline is pending
ci/crow/manual/build-all-versions-install-deps Pipeline failed
Some checks failed
ci/crow/manual/build-all-versions-amd64/1 Pipeline is pending
ci/crow/manual/build-all-versions-amd64/2 Pipeline is pending
ci/crow/manual/build-all-versions-amd64/3 Pipeline is pending
ci/crow/manual/build-all-versions-amd64/4 Pipeline is pending
ci/crow/manual/build-all-versions-amd64/5 Pipeline is pending
ci/crow/manual/build-all-versions-install-deps Pipeline failed
Adds build-all-versions-install-deps pipeline that runs once before the matrix builds, cleaning stale locks and installing bincraft to the shared cache without contention.
This commit is contained in:
parent
08070ce62f
commit
272275e868
1 changed files with 52 additions and 7 deletions
48
.crow/build-all-versions-install-deps.yaml
Normal file
48
.crow/build-all-versions-install-deps.yaml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
when:
|
||||
- event: manual
|
||||
evaluate: 'task == "build-all-amd64" || task == "build-all-arm64"'
|
||||
|
||||
skip_clone: true
|
||||
|
||||
labels:
|
||||
platform: linux/${ARCH}
|
||||
agent: artemis
|
||||
|
||||
steps:
|
||||
- name: 'Install deps and bincraft'
|
||||
image: reg.devxy.io/rpkgs/build-env-${OS}:${OS_VERSION}-${R_VERSION}
|
||||
pull: true
|
||||
environment:
|
||||
REPO_RO_TOKEN:
|
||||
from_secret: REPO_RO_TOKEN
|
||||
GITHUB_PAT:
|
||||
from_secret: GITHUB_PAT
|
||||
R_PKG_CACHE_DIR: /mnt/cache/pkgcache
|
||||
R_LIBS_USER: /mnt/cache/R-pkgs
|
||||
CCACHE_DIR: /mnt/cache/ccache
|
||||
volumes:
|
||||
- ${ARCH}-binaries-r-dep-cache-${OS}-${OS_VERSION//./}:/mnt/cache
|
||||
commands:
|
||||
- rm -rf /mnt/cache/R-pkgs/00LOCK-* /mnt/cache/R-pkgs/bincraft
|
||||
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages
|
||||
- git clone -q https://codefloe.com/rpkgs/bincraft.git /tmp/bincraft
|
||||
- R -q -e 'pak::local_install("/tmp/bincraft"); packageVersion("bincraft")'
|
||||
backend_options:
|
||||
docker:
|
||||
resources:
|
||||
requests:
|
||||
memory: 5Gi
|
||||
cpu: 1000m
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 5Gi
|
||||
cpu: 1000m
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: ${ARCH}
|
||||
node.kubernetes.io/instance-type: ${K8S_INSTANCE_TYPE}
|
||||
tolerations:
|
||||
- key: 'CI'
|
||||
operator: 'Equal'
|
||||
value: 'true'
|
||||
effect: 'NoSchedule'
|
||||
Loading…
Reference in a new issue