From 7a16779e7450070a3399866b1d73c0c3f9082afe Mon Sep 17 00:00:00 2001 From: Bryan Malyn Date: Fri, 9 Feb 2024 21:34:33 -0600 Subject: [PATCH] test arch container --- .github/workflows/docs.yml | 10 +++++----- .github/workflows/pre-commit.yml | 4 +++- cspell.yaml | 2 ++ doc/manual_install.md | 1 + 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b0dc8c4aeb..0fdcc8dc19 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,14 @@ jobs: default: runs-on: ubuntu-latest - + container: + image: archlinux steps: + - name: Get required packages + run: pacman --noconfirm --noprogressbar -Syu clang git libpipewire libpulse lm_sensors notmuch rust - 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 - 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..681fdd621e 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 clang git libpipewire libpulse lm_sensors notmuch rust - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: diff --git a/cspell.yaml b/cspell.yaml index 2be42c67f7..ec16bb2f02 100644 --- a/cspell.yaml +++ b/cspell.yaml @@ -95,9 +95,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.