Skip to content

Commit

Permalink
.github/actions/hash-rust: Add features parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Aug 28, 2024
1 parent 58ae251 commit 182b1b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/hash-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ inputs:
description: Code to run before building
default: ""
required: false
features:
description: Extra cargo features passed during compilation
default: ""
required: false
outputs:
hashes:
description: Comma-separated list of binary hashes
Expand Down Expand Up @@ -60,7 +64,7 @@ runs:
for pkg in $PKG_DIRS; do
pushd "${pkg}"
cargo build --release --locked --target "$TARGET"
cargo build --release --locked --features "${{ inputs.features }}" --target "$TARGET"
cargo elf2sgxs --release
popd
done
Expand All @@ -69,7 +73,7 @@ runs:
for pkg in $PKG_DIRS; do
pushd "${pkg}"
cargo build --release --locked
cargo build --release --locked --features "${{ inputs.features }}"
popd
done
fi
Expand Down

0 comments on commit 182b1b3

Please sign in to comment.