Skip to content

Commit

Permalink
Merge pull request #1948 from oasisprotocol/matevz/features/actions-f…
Browse files Browse the repository at this point in the history
…eatures-flag

.github/actions/hash-rust: Add features parameter
  • Loading branch information
matevz authored Aug 29, 2024
2 parents 58ae251 + 182b1b3 commit 22b8922
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 22b8922

Please sign in to comment.