Browse Source

CI: specify needed resources on per-task basis

Avoid need of specifying max configuration for tasks where such amount
of resources is unneeded.

%ci:reset-backlog
emacs-27
Leonid Plyushch 5 years ago
parent
commit
bfd320bc9d
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 17
      .cirrus.yml

17
.cirrus.yml

@ -1,10 +1,6 @@
container: container:
image: termux/package-builder:latest image: termux/package-builder:latest
# Max configuration required by few large packages such as `rust`.
cpu: 8
memory: 24
## ##
## When doing release builds (branch 'master'), update Docker image if ## When doing release builds (branch 'master'), update Docker image if
## required. ## required.
@ -26,6 +22,10 @@ docker_builder:
## If error found, exit with error code to stop build. ## If error found, exit with error code to stop build.
## ##
task: task:
container:
cpu: 1
memory: 4
name: Lint packages name: Lint packages
timeout_in: 5m timeout_in: 5m
@ -43,6 +43,11 @@ task:
## Built packages are accessible from Cirrus CI web interface. ## Built packages are accessible from Cirrus CI web interface.
## ##
task: task:
container:
# Max configuration required by few large packages such as `rust`.
cpu: 8
memory: 24
name: Build packages name: Build packages
# 2 hours is a maximal timeout available for free use. # 2 hours is a maximal timeout available for free use.
@ -100,6 +105,10 @@ task:
## to APT repository on Bintray. ## to APT repository on Bintray.
## ##
task: task:
container:
cpu: 1
memory: 4
name: Upload packages to Bintray name: Upload packages to Bintray
only_if: $CIRRUS_BRANCH == 'master' only_if: $CIRRUS_BRANCH == 'master'

Loading…
Cancel
Save