From 182b1b3887a1e4d13be8937705afe10422751141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Fri, 23 Aug 2024 11:59:37 +0200 Subject: [PATCH] .github/actions/hash-rust: Add features parameter --- .github/actions/hash-rust/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/hash-rust/action.yml b/.github/actions/hash-rust/action.yml index d92927706d..e2b276e395 100644 --- a/.github/actions/hash-rust/action.yml +++ b/.github/actions/hash-rust/action.yml @@ -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 @@ -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 @@ -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