Fix grid labels not visible #1146
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: Rust | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| x86-64-linux-build-and-test: | |
| if: github.event_name != 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: desktop-${{ runner.os }}-linux-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install Dependencies | |
| run: | | |
| export DEBIAN_FRONTEND=noninteractive | |
| sudo apt-get clean && sudo apt-get update | |
| sudo apt-get install -y pkg-config libudev-dev libxcb-shape0-dev libxcb-xfixes0-dev libxcb1-dev libasound2-dev libgtk-3-dev | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Build | |
| run: cargo build --target x86_64-unknown-linux-gnu --verbose | |
| - name: Run tests | |
| run: cargo test --target x86_64-unknown-linux-gnu --verbose | |
| wasm32-build-and-test: | |
| if: github.event_name != 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: web-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v1 | |
| # https://github.com/rust-lang/rust/issues/131960 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: nightly | |
| - run: cargo install --force wasm-bindgen-cli --version 0.2.114 | |
| - name: Install wasm Rust target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Install system dependencies | |
| run: | | |
| export DEBIAN_FRONTEND=noninteractive | |
| sudo apt-get clean && sudo apt-get update | |
| sudo apt-get install -y pkg-config libudev-dev libxcb-shape0-dev libxcb-xfixes0-dev libxcb1-dev | |
| - name: Cache npm dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: www/node_modules | |
| key: npm-${{ runner.os }}-${{ hashFiles('www/package-lock.json') }} | |
| - name: Install node dependencies | |
| run: (cd www && npm install) | |
| - name: Build | |
| run: ./.github/build.sh | |
| - name: Install Playwright browsers | |
| run: cd www && npx playwright install --with-deps chromium | |
| - name: Run Playwright tests | |
| run: cd www && npx playwright test | |
| - name: Upload Playwright report | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: www/playwright-report/ | |
| retention-days: 30 | |
| - name: Upload Playwright snapshots | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-snapshots | |
| path: www/tests/**/*-snapshots/ | |
| retention-days: 30 | |
| wasm32-publish: | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: web-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v1 | |
| # https://github.com/rust-lang/rust/issues/131960 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: nightly | |
| - run: cargo install --force wasm-bindgen-cli --version 0.2.114 | |
| - name: Install wasm Rust target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Install system dependencies | |
| run: | | |
| export DEBIAN_FRONTEND=noninteractive | |
| sudo apt-get clean && sudo apt-get update | |
| sudo apt-get install -y pkg-config libudev-dev libxcb-shape0-dev libxcb-xfixes0-dev libxcb1-dev | |
| - name: Install node dependencies | |
| run: (cd www && npm install) | |
| - name: Build | |
| run: ./.github/build.sh --release | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: www/dist/ | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |