From 920a8ecf40e2251a58752296f1f3cce965328191 Mon Sep 17 00:00:00 2001 From: naskya Date: Sat, 6 Jul 2024 00:13:09 +0900 Subject: [PATCH] ci: specify different target directory for msrv check --- .gitlab-ci.yml | 3 ++- ci/.gitignore | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 ci/.gitignore diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 063082d28c..91a19438b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,7 +42,7 @@ variables: CARGO_PROFILE_DEV_LTO: 'off' CARGO_PROFILE_DEV_DEBUG: 'none' CARGO_TERM_COLOR: 'always' - GIT_CLEAN_FLAGS: -ffdx -e node_modules/ -e built/ -e target/ -e packages/backend-rs/built/ + GIT_CLEAN_FLAGS: -ffdx -e node_modules/ -e built/ -e target/ -e packages/backend-rs/built/ -e ci/target-msrv/ default: before_script: @@ -247,6 +247,7 @@ cargo:check:msrv: - apt-get update && apt-get -y upgrade - apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client - cp ci/cargo/config.toml /usr/local/cargo/config.toml + - export CARGO_TARGET_DIR='ci/target-msrv' script: - cargo fetch --locked --manifest-path Cargo.toml - cargo check --locked --frozen --all-features diff --git a/ci/.gitignore b/ci/.gitignore new file mode 100644 index 0000000000..5546ffea79 --- /dev/null +++ b/ci/.gitignore @@ -0,0 +1 @@ +target-msrv/