diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b0dc8c4aeb..418cbc381c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,7 +2,7 @@ name: Docs on: push: - branches: + branches: - master env: @@ -12,14 +12,15 @@ jobs: default: runs-on: ubuntu-latest - + container: + image: archlinux steps: + - uses: dtolnay/rust-toolchain@stable - name: Version information run: rustc --version; cargo --version - name: Get required packages - run: sudo apt-get update && sudo apt-get install libsensors-dev libssl-dev libpulse-dev libnotmuch-dev + run: pacman --noconfirm --noprogressbar -Syu base-devel clang git libpipewire libpulse lm_sensors notmuch openssl - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - name: Generate docs run: cargo doc --all-features --no-deps - name: Create index.html diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9acdc83080..2d91438339 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -5,6 +5,8 @@ on: [push, pull_request] jobs: pre-commit: runs-on: ubuntu-latest + container: + image: archlinux strategy: fail-fast: false matrix: @@ -22,7 +24,7 @@ jobs: ] steps: - name: Get required packages - run: sudo apt-get update && sudo apt-get install libsensors-dev libssl-dev libpulse-dev libnotmuch-dev + run: pacman --noconfirm --noprogressbar -Syu base-devel clang git libpipewire libpulse lm_sensors notmuch openssl pre-commit - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: diff --git a/cspell.yaml b/cspell.yaml index 2be42c67f7..f79d1c28c8 100644 --- a/cspell.yaml +++ b/cspell.yaml @@ -41,6 +41,7 @@ words: - dbus - ddcci - ddcutil + - devel - dmenu - docsrs - dtolnay @@ -95,9 +96,11 @@ words: - NLMSG - nlmsghdr - nmtui + - noconfirm - NOFLAGS - noheader - NOPASSWD + - noprogressbar - notif - Noto - NZXT diff --git a/doc/manual_install.md b/doc/manual_install.md index bec5fffd02..36f08e47f6 100644 --- a/doc/manual_install.md +++ b/doc/manual_install.md @@ -5,6 +5,7 @@ - `libsensors-dev` - `libpulse-dev` (required for `pulseaudio` driver of sound block, compile with `--no-default-features` to opt-out) - `libnotmuch-dev` (required for optional `notmuch` block, compile with `--features notmuch` to opt-in) +- `libpipewire-0.3-dev` and `clang` (required for optional `pipewire` block, compile with `--features pipewire` to opt-in) Compilation is only tested with very recent stable versions of `rustc`. If you use a distro with older Rust packages, consider using [rustup](https://rustup.rs/) to install a newer toolchain.