fix(ci): stop cargo check needing Linux GTK deps; scope BREAKING CHAN… #46
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] | |
| pull_request: | |
| jobs: | |
| check: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, macos-latest, ubuntu-22.04] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install Linux build dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \ | |
| libayatana-appindicator3-dev librsvg2-dev libxdo-dev libssl-dev patchelf | |
| # macos-latest runners are Apple Silicon; also check the Intel target. | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ runner.os == 'macOS' && 'x86_64-apple-darwin' || '' }} | |
| - uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-tauri | |
| - run: npm ci | |
| # tauri::generate_context! needs ../dist to exist at compile time. | |
| - run: npm run build | |
| - run: cargo check --locked | |
| working-directory: src-tauri | |
| - run: cargo test --locked | |
| working-directory: src-tauri | |
| - if: runner.os == 'macOS' | |
| run: cargo check --locked --target x86_64-apple-darwin | |
| working-directory: src-tauri |