Repository navigation
moxwebgpu v0.1.0: initial commit + audit fixes #1
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: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| jobs: | |
| build-and-unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Type check | |
| run: pnpm exec tsc --noEmit | |
| - name: Build (ESM / CJS / IIFE + dts) | |
| run: pnpm build | |
| - name: Unit tests | |
| run: pnpm test | |
| gpu-e2e: | |
| # End-to-end tests on a real (software) GPU: Chrome + SwiftShader Vulkan + xvfb, | |
| # the exact stack the local `pnpm test:gpu` uses. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Install Chrome + xvfb | |
| run: | | |
| wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg | |
| echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] https://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list | |
| sudo apt-get update | |
| sudo apt-get install -y google-chrome-stable xvfb | |
| - name: Build browser bundle | |
| run: pnpm build | |
| - name: GPU end-to-end tests (SwiftShader) | |
| run: pnpm test:gpu |