mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-27 19:20:43 +01:00
fix: ci using ubuntu old deps
This commit is contained in:
24
.github/workflows/tests.yml
vendored
24
.github/workflows/tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user