-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove wee_alloc from rush * Add Rust licensing. * Add rust compiler to git action. * Allow Rust Cargo.lock be checked in * Add wasm detection * Add workflow check compiled wasm
- Loading branch information
Showing
16 changed files
with
1,043 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Can't compare *.wasm file as binary compilation are different | ||
|
||
wasm_dir_compare="./$1/" | ||
wasm_dir=./pkg/ | ||
|
||
function cmpFile() { | ||
fileName="${1##*/}" | ||
echo "comparing $fileName" | ||
cmp -b $wasm_dir_compare$fileName $wasm_dir$fileName | ||
if [[ $? -ne 0 ]]; then | ||
echo "Please recompile WASM with $fileName" | ||
exit 1 | ||
fi | ||
} | ||
|
||
for file in ./$wasm_dir_compare/*.ts ; do | ||
[ -L "${file%/}" ] && continue | ||
cmpFile $file | ||
done | ||
|
||
for file in ./$wasm_dir_compare/*.js ; do | ||
[ -L "${file%/}" ] && continue | ||
cmpFile $file | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,5 @@ public/workbox* | |
#cargo, rust | ||
/target | ||
**/*.rs.bk | ||
Cargo.lock | ||
bin/ | ||
wasm-pack.log/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
6880acd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
walcron – ./
walcron-git-master-walcoorperation.vercel.app
www.walcron.com
walcron-walcoorperation.vercel.app
walcron.com