Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/actions/hash-rust: Add features parameter #1948

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading