build(deps): bump wasm/mtfmt from f26367d
to 9fa027f
#50
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
name: Build WASM | |
on: | |
push: | |
paths: | |
- "wasm/**.h" | |
- "wasm/**.c" | |
- "wasm/Makefile" | |
- "wasm/mtfmt" | |
- ".github/workflows/build-wasm.yml" | |
pull_request: | |
branches: [main] | |
paths: | |
- "wasm/**.h" | |
- "wasm/**.c" | |
- "wasm/Makefile" | |
- "wasm/mtfmt" | |
- ".github/workflows/build-wasm.yml" | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: "Log level" | |
required: true | |
default: "warning" | |
jobs: | |
build-wasm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
# WASM | |
- name: Setup emsdk | |
uses: mymindstorm/setup-emsdk@v13 | |
- name: WASM build | |
working-directory: "./wasm" | |
run: | | |
emmake make | |
# 打包 | |
- name: Upload artifact | |
if: github.ref == 'refs/heads/main' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wasm-artifact | |
path: wasm/target/* |