Linux CI / desktop (push) Canceled after 0s
Linux CI / core (push) Canceled after 1m1s
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
name: Linux CI
|
|
on: [push, pull_request]
|
|
# Gitea currently has Ubuntu runners only; native Windows/macOS are separate
|
|
# release gates. Cancel obsolete branch runs instead of accumulating work.
|
|
concurrency:
|
|
group: searchi-ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
env:
|
|
SEARCHI_FORCE_CPU: "1"
|
|
jobs:
|
|
core:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- run: cargo fmt --all -- --check
|
|
- run: cargo clippy --workspace --all-targets -- -D warnings
|
|
- run: cargo test --workspace --locked
|
|
desktop:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
defaults:
|
|
run:
|
|
working-directory: apps/desktop
|
|
env:
|
|
WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS: --disable-gpu
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
- if: runner.os == 'Linux'
|
|
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential libssl-dev librsvg2-dev libayatana-appindicator3-dev
|
|
- run: npm ci
|
|
- run: npm run format:check
|
|
- run: npm test
|
|
- run: npm run build
|
|
- run: cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
|
|
- run: cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --locked -- -D warnings
|
|
- run: cargo test --manifest-path src-tauri/Cargo.toml --locked
|