Skip to content
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
9 changes: 7 additions & 2 deletions .github/actions/hash-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ inputs:
description: Control whether to produce sgxs binaries
default: no
required: false
setup:
description: Code to run before building
default: ""
required: false
outputs:
hashes:
description: Comma-separated list of binary hashes
Expand All @@ -39,6 +43,7 @@ runs:
run: |
docker run --rm -i -v ${{ inputs.dir }}:/src ${{ inputs.image }} /bin/bash <<-'EOF'
set -e
${{ inputs.setup }}
cd /src
CARGO_TARGET_ROOT="/src/target"
TARGET=""
Expand All @@ -51,7 +56,7 @@ runs:

for pkg in $PKG_DIRS; do
pushd ${pkg}
cargo build --release --target $TARGET
cargo build --release --locked --target $TARGET
cargo elf2sgxs --release
popd
done
Expand All @@ -60,7 +65,7 @@ runs:

for pkg in $PKG_DIRS; do
pushd ${pkg}
cargo build --release
cargo build --release --locked
popd
done
fi
Expand Down