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

@@ -33,13 +33,22 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt update && 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: Setup Pages
uses: actions/configure-pages@v5
- name: Generate docs
run: |
cargo doc --no-deps
devenv shell cargo doc --no-deps
echo '<meta http-equiv="refresh" content="0; url=libnotify_rs/index.html">' > target/doc/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

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