Skip to content

Commit

Permalink
Merge pull request #1661 from Dentrax/pipelines/cargo-output-dir
Browse files Browse the repository at this point in the history
pipelines/cargo: ability to override the hardcoded output-dir
  • Loading branch information
EyeCantCU authored Nov 19, 2024
2 parents 9b14cd2 + b526565 commit 4a2d679
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 4a2d679

Please sign in to comment.