about summary refs log tree commit diff
path: root/src/ci
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-31 00:23:13 +0000
committerbors <bors@rust-lang.org>2020-12-31 00:23:13 +0000
commitf0073a59cffebcf4f31e2bfa690a18f4f1dfd608 (patch)
treec4cb00158f45bda84f3baa0eece0df4c04086ac5 /src/ci
parent9775ffef2a4c3a36cadb58b72ea60cefb92c86ae (diff)
parent5526d902508178293b98b4d8b7b39802107dc395 (diff)
downloadrust-f0073a59cffebcf4f31e2bfa690a18f4f1dfd608.tar.gz
rust-f0073a59cffebcf4f31e2bfa690a18f4f1dfd608.zip
Auto merge of #80435 - pietroalbini:compression-formats, r=Mark-Simulacrum
Only produce .xz tarballs on CI

This PR adds a `./configure` option to choose which tarball compression formats to produce, and changes our CI configuration to only produce `.xz` tarballs. The release process will then recompress everything into `.gz` when producing a release.

This will drastically reduce our storage costs for CI artifacts, as we'd stop storing the same data twice. **Stable, beta and nightly releases will not be affected by this at all.**

Before landing this we'll need to increase the VM size of our release process, to recompress everything in a reasonable amount of time.
r? `@Mark-Simulacrum`
Diffstat (limited to 'src/ci')
-rwxr-xr-xsrc/ci/run.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh
index 181a7fcb732..1958b6ee41d 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -53,6 +53,11 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps"
 RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-cargo-native-static"
 RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-units-std=1"
 
+# Only produce xz tarballs on CI. gz tarballs will be generated by the release
+# process by recompressing the existing xz ones. This decreases the storage
+# space required for CI artifacts.
+RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --dist-compression-formats=xz"
+
 if [ "$DIST_SRC" = "" ]; then
   RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-dist-src"
 fi