Skip to content

Commit

Permalink
Merge pull request #1392 from asomers/docker_builder
Browse files Browse the repository at this point in the history
During CI, use just 1 cpu for QEMU builds
  • Loading branch information
asomers authored Feb 23, 2021
2 parents 7704f5d + 6496bb8 commit 7e2ae52
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7e2ae52

Please sign in to comment.