Skip to content

Commit

Permalink
pipelines/cargo: ability to override output-dir
Browse files Browse the repository at this point in the history
Some projects exports the binaries to different paths
so that we couldn't use the cargo/build pipeline properly.

Signed-off-by: Dentrax <[email protected]>
  • Loading branch information
Dentrax committed Nov 19, 2024
1 parent 9b14cd2 commit b526565
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/build/pipelines/cargo/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ inputs:
Directory where binaries will be installed
default: bin

output-dir:
description: |
Directory where the binaris will be placed after building. Defaults to target/release
default: target/release

pipeline:
- runs: |
# Installation directory should always be bin as we are producing a binary
INSTALL_PATH="${{targets.contextdir}}/${{inputs.prefix}}/${{inputs.install-dir}}"
OUTPUT_PATH="target/release"
OUTPUT_PATH="${{inputs.output-dir}}"
# Enter target package directory
cd "${{inputs.modroot}}"
Expand Down

0 comments on commit b526565

Please sign in to comment.