diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c561d5c..8b5589a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -67,6 +67,16 @@ jobs: git config --global user.email "smile@liuchang.men" 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: |