From 6496bb80124077944e719e886323ca787ab29c58 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Tue, 23 Feb 2021 07:28:55 -0700 Subject: During CI, use just 1 cpu for QEMU builds https://github.com/cirruslabs/cirrus-ci-docs/issues/741 --- .cirrus.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index d15b7eec..6d5c4db4 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -52,12 +52,11 @@ task: # Use cross for QEMU-based testing # cross needs to execute Docker, so we must use Cirrus's Docker Builder task. -docker_builder: +task: env: RUST_TEST_THREADS: 1 # QEMU works best with 1 thread HOME: /tmp/home PATH: $HOME/.cargo/bin:$PATH - #cpu: 1 docker_builder doesn't support "cpu"? matrix: - name: Linux aarch64 env: @@ -89,6 +88,12 @@ docker_builder: - name: Linux powerpc64le env: TARGET: powerpc64le-unknown-linux-gnu + compute_engine_instance: + image_project: cirrus-images + image: family/docker-builder + platform: linux + cpu: 1 # Since QEMU will only use 1 thread + memory: 4G setup_script: - mkdir /tmp/home - curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs -- cgit v1.2.3