Skip to content

Feat/resizable sidebar #38

Feat/resizable sidebar

Feat/resizable sidebar #38

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- "src/**"
- "assets/**"
- "Cargo.toml"
- "Cargo.lock"
- "build.rs"
- "flake.nix"
- "flake.lock"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "src/**"
- "assets/**"
- "Cargo.toml"
- "Cargo.lock"
- "build.rs"
- "flake.nix"
- "flake.lock"
- ".github/workflows/ci.yml"
# A new push to the same branch/PR supersedes the previous run.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-25.11
- uses: Swatinem/rust-cache@v2
- name: cargo check
run: nix develop --command cargo check --all-targets
- name: cargo clippy
run: nix develop --command cargo clippy --all-targets -- -D warnings
- name: cargo test
run: nix develop --command cargo test
check-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: cargo check
run: cargo check --all-targets
- name: cargo clippy
run: cargo clippy --all-targets -- -D warnings
- name: cargo test
run: cargo test