diff options
Diffstat (limited to '.github/workflows/wasm.yml')
-rw-r--r-- | .github/workflows/wasm.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml new file mode 100644 index 0000000..a0910ba --- /dev/null +++ b/.github/workflows/wasm.yml | |||
@@ -0,0 +1,23 @@ | |||
1 | name: Wasm Build | ||
2 | |||
3 | on: | ||
4 | workflow_dispatch: | ||
5 | |||
6 | jobs: | ||
7 | build: | ||
8 | name: Build | ||
9 | runs-on: macos-latest | ||
10 | steps: | ||
11 | - name: Checkout | ||
12 | uses: actions/checkout@v3 | ||
13 | - name: Build Wasm | ||
14 | run: | | ||
15 | brew upgrade -f python | ||
16 | brew install emscripten | ||
17 | make wasm-node | ||
18 | - name: Upload artifact | ||
19 | uses: actions/upload-artifact@v4 | ||
20 | with: | ||
21 | name: yuescript-wasm | ||
22 | path: ./wasm | ||
23 | retention-days: 7 | ||