secure input warning and fallback #1193
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: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "src-tauri/**" | |
| pull_request: | |
| paths: | |
| - "src-tauri/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| rust-tests: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| # libvulkan-dev + glslc + spirv-headers let transcribe-cpp-sys build | |
| # ggml's Vulkan backend (the Linux `vulkan` feature). Mirrors the apt | |
| # set transcribe.cpp's native-ci uses to build -DTRANSCRIBE_VULKAN=ON. | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev libasound2-dev libssl-dev libgtk-layer-shell-dev \ | |
| libvulkan-dev glslc spirv-headers | |
| - uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "./src-tauri -> target" | |
| - name: Run Rust tests | |
| working-directory: src-tauri | |
| run: cargo test |