-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (44 loc) · 1.1 KB
/
build-module.yml
File metadata and controls
52 lines (44 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build hako.wasm
on:
push:
tags:
- 'v*'
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install WASI SDK
uses: konsumer/install-wasi-sdk@v1
with:
version: "27"
- name: Setup Binaryen
uses: ./.github/actions/setup-binaryen
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup WABT
uses: ./.github/actions/setup-wabt
- name: Build hako.wasm
working-directory: engine
run: ./release-hako.sh
- name: Generate bindings
working-directory: engine
run: bun run codegen.ts parse hako.wasm hako.h bindings.json
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: hako-wasm
path: |
engine/hako.wasm
engine/bindings.json
retention-days: 90
if-no-files-found: error