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,36 +16,36 @@
{% macro jobs() -%} {% macro jobs() -%}
- name: rust-xwin - name: rust-xwin
serial: true
plan: plan:
- get: repo - get: repo
trigger: true trigger: true
- in_parallel: - task: build-rust-xwin
fail_fast: true file: repo/tasks/build-image.yml
steps: privileged: true
- task: build-rust-xwin vars:
file: repo/tasks/build-image.yml context: repo/images/rust-xwin
privileged: true target: rust-xwin
vars: dockerfile: ''
context: repo/images/rust-xwin output_mapping:
target: rust-xwin image: image-rust-xwin
dockerfile: '' - task: build-rust-xwin-ci
output_mapping: file: repo/tasks/build-image.yml
image: image-rust-xwin privileged: true
- task: build-rust-xwin-ci vars:
file: repo/tasks/build-image.yml context: repo/images/rust-xwin
privileged: true target: rust-xwin-ci
vars: dockerfile: ''
context: repo/images/rust-xwin output_mapping:
target: rust-xwin-ci image: image-rust-xwin-ci
dockerfile: ''
output_mapping:
image: image-rust-xwin-ci
- in_parallel: - in_parallel:
steps: steps:
- put: image-rust-xwin - put: image-rust-xwin
params: inputs: detect
image: image-rust-xwin/image.tar params: { image: image-rust-xwin/image.tar }
no_get: true
- put: image-rust-xwin-ci - put: image-rust-xwin-ci
params: inputs: detect
image: image-rust-xwin-ci/image.tar params: { image: image-rust-xwin-ci/image.tar }
no_get: true
{% endmacro %} {% endmacro %}

View file

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