Set cargo target dir.

This is to avoid writing to the target dir in the repo folder.
This commit is contained in:
Tom Alexander 2023-12-22 19:30:53 -05:00
parent 4447f1ed4a
commit 134444b2c3
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 3 additions and 0 deletions

View File

@ -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