feat(textbox): add rotation support for textbox rendering #1879
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: Test | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| rust: | |
| name: Rust | |
| runs-on: ubuntu-latest | |
| steps: | |
| # refer: https://v2.tauri.app/start/prerequisites/#linux | |
| - run: | | |
| sudo apt update | |
| sudo apt install --no-install-recommends \ | |
| libwebkit2gtk-4.1-dev \ | |
| build-essential \ | |
| curl \ | |
| wget \ | |
| file \ | |
| libxdo-dev \ | |
| libssl-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| fonts-noto-cjk \ | |
| dbus-x11 \ | |
| gnome-keyring | |
| - uses: actions/checkout@v7 | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-targets: false | |
| # The integration-tests crate prepares a shared llama.cpp runtime once | |
| # per `cargo test` invocation under `tests/integration-tests/.cache`; | |
| # caching that directory across runs avoids re-downloading the dylib | |
| # on every PR. | |
| - uses: actions/cache@v6 | |
| with: | |
| path: tests/integration-tests/.cache | |
| key: ${{ runner.os }}-integration-runtime-${{ hashFiles('koharu-runtime/**/*.rs', 'koharu-llm/**/*.rs') }} | |
| restore-keys: ${{ runner.os }}-integration-runtime- | |
| - name: Run workspace tests (unit + integration) | |
| run: | | |
| # Headless dbus + gnome-keyring so the provider-secret integration | |
| # tests can talk to secret-service on Linux runners. | |
| eval "$(dbus-launch --sh-syntax)" | |
| echo -n "" | gnome-keyring-daemon --unlock --components=secrets &>/dev/null & | |
| export $(echo -n "" | gnome-keyring-daemon --start --components=secrets 2>/dev/null) | |
| cargo test --workspace --tests | |
| ui: | |
| name: UI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: oven-sh/setup-bun@v2 | |
| - uses: actions/cache@v6 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} | |
| - run: bun install --frozen-lockfile | |
| - name: Run Vitest | |
| run: bun run --filter ui test |