Files
sqwerk/.github/workflows/rs-ci.yaml
T
Rodney Osodo 22ba53e196 fix(ci): add tauri Prerequisites
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
2025-06-11 10:46:48 +03:00

60 lines
1.1 KiB
YAML

name: Rust CI
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "src-tauri/**"
- ".github/**"
pull_request:
branches:
- main
paths:
- "src-tauri/**"
- ".github/**"
env:
CARGO_TERM_COLOR: always
jobs:
rust-ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src-tauri
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Prerequisites
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
librsvg2-dev \
libappindicator3-dev \
patchelf
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run linter
run: cargo clippy -- -D warnings
- name: Check cargo
run: cargo check --release --all-targets --all-features
- name: Run tests
run: cargo test --verbose
- name: Build for all features
run: cargo build --release --all-features