From 58b28d59b2a89ad97c7fac81b5fac6aa06cc6cfd Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Wed, 19 May 2021 10:43:40 -0600 Subject: [PATCH] fix(ci): work around Rustup issue on FreeBSD References: rust-lang/rustup#2774 Signed-off-by: Fletcher Nichol --- .cirrus.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 0660c4b..143c935 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -195,6 +195,11 @@ test_task: <<: *base_macos - env: TARGET: x86_64-unknown-freebsd + # Temporary workaround for error `error: sysinfo not supported on + # this platform` seen on FreeBSD platforms, affecting Rustup + # + # References: https://github.com/rust-lang/rustup/issues/2774 + RUSTUP_IO_THREADS: 1 freebsd_instance: image_family: freebsd-11-4 <<: *base_freebsd @@ -261,6 +266,11 @@ build_bin_task: <<: *build_bin_unix archive_script: zip "$BIN-$TARGET" "$BIN-$TARGET" - env: + # Temporary workaround for error `error: sysinfo not supported on + # this platform` seen on FreeBSD platforms, affecting Rustup + # + # References: https://github.com/rust-lang/rustup/issues/2774 + RUSTUP_IO_THREADS: 1 TARGET: x86_64-unknown-freebsd STRIP: strip EXT: tar.gz