1
Fork 0

Compare commits

..

2 commits

Author SHA1 Message Date
29faf1e86c
Run builds in series
Since they I/O bound off of the same hardware, and sometimes also CPU
bound when compiling things, running them in parallel only slows
things down.

Closes: #28
2024-08-26 16:22:51 +02:00
39eb09456b
Speed up image uploads
As long as the image isn't used later on, there is no point in the
automatic `get` after `put`.

Also limit the inputs that each `put` step uses.

Closes: #29
2024-08-26 16:17:48 +02:00
2 changed files with 28 additions and 25 deletions

View file

@ -16,12 +16,10 @@
{% macro jobs() -%}
- name: rust-xwin
serial: true
plan:
- get: repo
trigger: true
- in_parallel:
fail_fast: true
steps:
- task: build-rust-xwin
file: repo/tasks/build-image.yml
privileged: true
@ -43,9 +41,11 @@
- in_parallel:
steps:
- put: image-rust-xwin
params:
image: image-rust-xwin/image.tar
inputs: detect
params: { image: image-rust-xwin/image.tar }
no_get: true
- put: image-rust-xwin-ci
params:
image: image-rust-xwin-ci/image.tar
inputs: detect
params: { image: image-rust-xwin-ci/image.tar }
no_get: true
{% endmacro %}

View file

@ -1,5 +1,6 @@
{% macro jobs(job) -%}
- name: {{ job.name }}
serial: true
plan:
- get: repo
trigger: true
@ -17,5 +18,7 @@
{%- endfor %}
{%- endif %}
- put: image-{{ job.name }}
inputs: detect
params: { image: image/image.tar }
no_get: true
{%- endmacro -%}