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

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