fix(cs): generate namespace in right place #84
Workflow file for this run
This file contains hidden or 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 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 |