Add PartialEq for GeometryPixel (#401)
#830
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-demo build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./demos/web-editor/web | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/rust-cache | |
| with: | |
| cache-key: wasm-demo | |
| - name: Install wasm target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Install wasm-pack | |
| run: | | |
| curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Install npm dependencies | |
| run: npm install | |
| - name: Check Prettier | |
| run: npx prettier . --check | |
| - name: Build wasm-demo | |
| run: npm run dist | |
| - name: Check `git` cleanliness | |
| run: | | |
| if [[ -n $(git status --porcelain ../crate/Cargo.lock) ]]; then | |
| echo "Error: demos/web-editor/crate/Cargo.lock needs to be updated" | |
| git diff ../crate/Cargo.lock | |
| exit 1 | |
| fi |