Skip to content

Commit f514336

Browse files
committed
untar vendored archive before doing diff
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent 44dcf40 commit f514336

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/CreateRelease.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ jobs:
4141
- name: Verify vendor.tar
4242
if: ${{ contains(github.ref, 'refs/heads/release/') }}
4343
run: |
44-
mv ./src/hyperlight_wasm/vendor.tar ./vendor.tar
44+
set -euxo pipefail
45+
VENDOR1=$(mktemp -d)
46+
VENDOR2=$(mktemp -d)
47+
tar xf ./src/hyperlight_wasm/vendor.tar -C $VENDOR1
4548
just make-vendor-tar
46-
if ! git diff --no-index ./vendor.tar ./src/hyperlight_wasm/vendor.tar; then
49+
tar xf ./src/hyperlight_wasm/vendor.tar -C $VENDOR2
50+
if ! git diff --no-index $VENDOR1 $VENDOR2; then
4751
echo "vendor.tar is not up to date, please run 'just make-vendor-tar' and commit the changes"
4852
exit 1
4953
fi

0 commit comments

Comments
 (0)