Skip to content

Commit be5f3fb

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

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/CreateRelease.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@ 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
54+
git restore ./src/hyperlight_wasm/vendor.tar
5055
shell: bash
5156
- name: Package hyperlight-wasm crate
5257
if: ${{ contains(github.ref, 'refs/heads/release/') }}
@@ -55,7 +60,7 @@ jobs:
5560
- name: Install minver_rs
5661
run: |
5762
cargo install minver_rs
58-
shell: pwsh
63+
shell: bash
5964
- name: Set HYPERLIGHTWASM_VERSION
6065
run: |
6166
git fetch --tags || true
@@ -64,7 +69,7 @@ jobs:
6469
export MINVER_PRERELEASE_IDENTIFIER="preview"
6570
echo "HYPERLIGHTWASM_VERSION=$(minver)" >> $GITHUB_ENV
6671
echo "HYPERLIGHTWASM_VERSION=$(minver)"
67-
shell: pwsh
72+
shell: bash
6873
- name: Download Wasm Modules
6974
uses: actions/download-artifact@v4
7075
with:

0 commit comments

Comments
 (0)