build(deps): bump actions/upload-artifact from 3 to 4 #10
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: "make wasm" | |
on: | |
push: | |
branches: [master] | |
paths: | |
- "src/**.c" | |
- "inc/**.h" | |
- "support/WebAssembly.mk" | |
- "support/WebAssemblyExport.mk" | |
- ".github/workflows/make-wasm.yml" | |
pull_request: | |
branches: [master] | |
paths: | |
- "src/**.c" | |
- "inc/**.h" | |
- "support/WebAssembly.mk" | |
- "support/WebAssemblyExport.mk" | |
- ".github/workflows/make-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@v4 | |
with: | |
submodules: true | |
# WASM | |
- name: Setup emsdk | |
uses: mymindstorm/setup-emsdk@v13 | |
- name: WASM build | |
run: | | |
emmake make --makefile=support/WebAssembly.mk | |
# 打包 | |
- name: Upload artifact | |
if: github.ref == 'refs/heads/master' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wasm-artifact | |
path: target/*.wasm |