From 134444b2c35aed397d3b9af00a95e74942b2ab0d Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 22 Dec 2023 19:30:53 -0500 Subject: [PATCH] Set cargo target dir. This is to avoid writing to the target dir in the repo folder. --- .lighthouse/pipeline-rust-test.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.lighthouse/pipeline-rust-test.yaml b/.lighthouse/pipeline-rust-test.yaml index 2d47307..8989125 100644 --- a/.lighthouse/pipeline-rust-test.yaml +++ b/.lighthouse/pipeline-rust-test.yaml @@ -109,6 +109,9 @@ spec: workingDir: "$(workspaces.source.path)" command: [cargo, test, --no-fail-fast] args: [] + env: + - name: CARGO_TARGET_DIR + value: /target workspaces: - name: source workspace: git-source