fix: ci using ubuntu old deps

This commit is contained in:
2026-09-30 19:45:06 +02:00
parent 014f83f292
commit 10dff5e82c
3 changed files with 27 additions and 10 deletions

View File

@@ -39,14 +39,18 @@ jobs:
- uses: actions/checkout@v6
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libnotify-dev clang pkg-config
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v16
with:
name: devenv
- name: Install devenv.sh
run: nix profile add nixpkgs#devenv
- name: Test dev build
run: cargo test
run: devenv shell cargo test
- name: Test release build
run: cargo test --release
run: devenv shell cargo test --release
style-checks:
runs-on: ubuntu-latest
@@ -55,11 +59,15 @@ jobs:
- uses: actions/checkout@v6
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: sudo apt install libnotify-dev clang pkg-config -y
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v16
with:
name: devenv
- name: Install devenv.sh
run: nix profile add nixpkgs#devenv
- name: Clippy check
run: cargo clippy -- -D warnings
run: devenv shell cargo clippy -- -D warnings
- name: Format check
run: cargo fmt -- --check
run: devenv shell cargo fmt -- --check