diff options
author | Alan Somers <asomers@gmail.com> | 2021-02-23 07:28:55 -0700 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2021-02-23 08:56:10 -0700 |
commit | 6496bb80124077944e719e886323ca787ab29c58 (patch) | |
tree | 50c3029acaf8ab121b644445758efe83f13c1a0b /.cirrus.yml | |
parent | 7704f5d5d75a6c0067499280f027e0cc2510998d (diff) | |
download | nix-6496bb80124077944e719e886323ca787ab29c58.zip |
During CI, use just 1 cpu for QEMU builds
https://github.com/cirruslabs/cirrus-ci-docs/issues/741
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 9 |
1 files 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 |