Skip to content

Commit 8f2ff55

Browse files
committed
During CI, use just 1 cpu for QEMU builds
cirruslabs/cirrus-ci-docs#741
1 parent 7704f5d commit 8f2ff55

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.cirrus.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,16 @@ task:
5252

5353
# Use cross for QEMU-based testing
5454
# cross needs to execute Docker, so we must use Cirrus's Docker Builder task.
55-
docker_builder:
55+
compute_engine_instance:
56+
image_project: cirrus-images
57+
image: family/docker_builder
58+
platform: linux
59+
cpu: 1 # Since QEMU will only use 1 thread
60+
memory: 4G
5661
env:
5762
RUST_TEST_THREADS: 1 # QEMU works best with 1 thread
5863
HOME: /tmp/home
5964
PATH: $HOME/.cargo/bin:$PATH
60-
#cpu: 1 docker_builder doesn't support "cpu"?
6165
matrix:
6266
- name: Linux aarch64
6367
env:

0 commit comments

Comments
 (0)