fix #17
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: WASM | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Emscripten | |
| uses: mymindstorm/setup-emsdk@v14 | |
| with: | |
| version: 3.1.51 | |
| - name: Verify Emscripten | |
| run: emcc --version | |
| - name: Configure CMake | |
| run: emcmake cmake -B build -DCMAKE_BUILD_TYPE=Release | |
| - name: Build | |
| run: cmake --build build -j$(nproc) | |
| - name: Verify artifacts | |
| run: | | |
| echo "Checking for generated WASM files..." | |
| ls -la build/examples/*.wasm || echo "No example WASM files found" | |
| ls -la build/examples/*.js || echo "No example JS files found" | |
| # Verify at least one example was built | |
| test -f build/examples/01_window.wasm && echo "01_window.wasm exists" |