Skip to content

ci(release): bump sccache-action to v0.0.10, fix includeUpdaterJson i… #153

ci(release): bump sccache-action to v0.0.10, fix includeUpdaterJson i…

ci(release): bump sccache-action to v0.0.10, fix includeUpdaterJson i… #153

Workflow file for this run

name: ci
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/local/lib/android /usr/local/share/dotnet /opt/ghc /usr/share/dotnet /opt/hostedtoolcache/CodeQL
df -h
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
with:
version: 10
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: 'pnpm'
# Installs the toolchain + components pinned in rust-toolchain.toml.
- name: Install Rust (pinned by rust-toolchain.toml)
run: rustup show
- uses: swatinem/rust-cache@v2
with:
workspaces: '. -> target'
- run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libsoup-3.0-dev libsecret-1-dev
- run: pnpm install
# Build the frontend first so `dist/` exists for the Tauri build script.
- run: pnpm build
- name: Rustfmt
run: cargo fmt --all --check
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Tests
run: cargo test --workspace
# Informational coverage on the modules under refactor — never blocks CI.
- name: Coverage (informational)
continue-on-error: true
run: |
rustup component add llvm-tools-preview
curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C "$HOME/.cargo/bin"
cargo llvm-cov --workspace --summary-only