Skip to content

build(deps): bump wasm/mtfmt from f26367d to 9fa027f #50

build(deps): bump wasm/mtfmt from f26367d to 9fa027f

build(deps): bump wasm/mtfmt from f26367d to 9fa027f #50

Workflow file for this run

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/*