Skip to content

Commit

Permalink
action添加部署wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
smilelc3 committed Oct 20, 2024
1 parent 5c2b5a7 commit e1f23c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "smilelc3"
# 部署 wasm
- name: Setup wasm
run: |
cd ${{github.workspace}}/js/
git clone --depth=1 https://github.com/smilelc3/MyLittleTool.git
sudo apt install emscripten -y
emcc MyLittleTool/Hex2Ascii.cpp MyLittleTool/Ascii2Hex.cpp MyLittleTool/Linear11Trans.cpp -D WASM_EMCC -o MyLittleTool.js -Oz -flto -s WASM=1 -s "EXPORTED_RUNTIME_METHODS=['cwrap']"
rm -rf MyLittleTool
cd -
# 构建和部署 hexo
- name: build and deploy hexo
run: |
Expand Down

0 comments on commit e1f23c0

Please sign in to comment.