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:
11
.github/workflows/static.yml
vendored
11
.github/workflows/static.yml
vendored
@@ -33,13 +33,22 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt update && sudo apt install libnotify-dev clang pkg-config -y
|
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
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
- name: Generate docs
|
- name: Generate docs
|
||||||
run: |
|
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
|
echo '<meta http-equiv="refresh" content="0; url=libnotify_rs/index.html">' > target/doc/index.html
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|||||||
24
.github/workflows/tests.yml
vendored
24
.github/workflows/tests.yml
vendored
@@ -39,14 +39,18 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- uses: cachix/install-nix-action@v31
|
||||||
run: sudo apt-get update && sudo apt-get install -y libnotify-dev clang pkg-config
|
- uses: cachix/cachix-action@v16
|
||||||
|
with:
|
||||||
|
name: devenv
|
||||||
|
- name: Install devenv.sh
|
||||||
|
run: nix profile add nixpkgs#devenv
|
||||||
|
|
||||||
- name: Test dev build
|
- name: Test dev build
|
||||||
run: cargo test
|
run: devenv shell cargo test
|
||||||
|
|
||||||
- name: Test release build
|
- name: Test release build
|
||||||
run: cargo test --release
|
run: devenv shell cargo test --release
|
||||||
|
|
||||||
style-checks:
|
style-checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -55,11 +59,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- uses: cachix/install-nix-action@v31
|
||||||
run: sudo apt install libnotify-dev clang pkg-config -y
|
- uses: cachix/cachix-action@v16
|
||||||
|
with:
|
||||||
|
name: devenv
|
||||||
|
- name: Install devenv.sh
|
||||||
|
run: nix profile add nixpkgs#devenv
|
||||||
|
|
||||||
- name: Clippy check
|
- name: Clippy check
|
||||||
run: cargo clippy -- -D warnings
|
run: devenv shell cargo clippy -- -D warnings
|
||||||
|
|
||||||
- name: Format check
|
- name: Format check
|
||||||
run: cargo fmt -- --check
|
run: devenv shell cargo fmt -- --check
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ cargo add --git "https://github.com/szymon-jozef/libnotify-rs"
|
|||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
To use this crate you need to have installed:
|
To use this crate you need to have installed:
|
||||||
- [libnotify](https://gitlab.gnome.org/GNOME/libnotify), duh
|
- [libnotify](https://gitlab.gnome.org/GNOME/libnotify), duh (version 0.8.8 >= is supported)
|
||||||
- [clang](https://clang.llvm.org/) for bindgen
|
- [clang](https://clang.llvm.org/) for bindgen
|
||||||
- [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/?__goaway_challenge=meta-refresh&__goaway_id=e567f4f3ff21df0fb2b589fc86ed197e&__goaway_referer=https%3A%2F%2Fsearch.brave.com%2F), to find the above
|
- [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/?__goaway_challenge=meta-refresh&__goaway_id=e567f4f3ff21df0fb2b589fc86ed197e&__goaway_referer=https%3A%2F%2Fsearch.brave.com%2F), to find the above
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user