Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Add hash to release
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Dec 12, 2023
1 parent 57ce8c3 commit 40e5f42
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/install_toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
override: true
target: wasm32-unknown-unknown
components: rustfmt
- run: cargo install wasm-tools
- run: cargo install wasm-tools blake2_bin
shell: bash
- run: sudo apt update
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ jobs:
files: |
*.wasm
phatjs-x86_64-unknown-linux-musl
hash.txt
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Cargo.lock
.vscode
/*.wasm
/phatjs-x86_64-unknown-linux-musl
/BUILD-SUMMARY.txt
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ phatjs-web.wasm:
cp $(WEB_BUILD_OUTPUT_DIR)/phatjs.wasm $@

opt: all $(OPTIMIZED_OUTPUT)
blake2 -b --length 32 *.wasm phatjs-x86_64-unknown-linux-musl | tee -a hash.txt

%-stripped.wasm: %.wasm
wasm-opt $< -Os -o $@
Expand Down

0 comments on commit 40e5f42

Please sign in to comment.