From eb1f1a347d01794b8d0c7e38a1d99f9665310f6e Mon Sep 17 00:00:00 2001 From: Eric Seppanen Date: Wed, 19 May 2021 18:29:40 -0700 Subject: [PATCH] rust builds: disable incremental builds For a CI build, storing incremental build data just makes the cache bigger, for minimal gain. Also, for Rust < 1.52.1 there are incremental compilation bugs. CircleCI is currently building on 1.51. This only affects the debug build; incremental compilation isn't used on the release build. --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4c504cda0f..3ba48a7fc4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -100,6 +100,7 @@ jobs: - run: name: Rust build << parameters.build_type >> command: | + export CARGO_INCREMENTAL=0 BUILD_TYPE="<< parameters.build_type >>" if [[ $BUILD_TYPE == "debug" ]]; then echo "Build in debug mode" @@ -128,6 +129,7 @@ jobs: - run: name: cargo install command: | + export CARGO_INCREMENTAL=0 BUILD_TYPE="<< parameters.build_type >>" if [[ $BUILD_TYPE == "debug" ]]; then echo "Install debug mode"