Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
run: |
cargo build --manifest-path ./server/Cargo.toml --no-default-features --features openssl_crypto

- name: Install PAM headers
run: |
sudo apt-get update
sudo apt-get install -y libpam0g-dev

- name: Build PAM
run: |
cargo build --manifest-path ./pam/Cargo.toml
Expand Down Expand Up @@ -124,7 +129,7 @@ jobs:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: dnf install -y git meson gcc systemd
run: dnf install -y git meson gcc systemd pam-devel
- name: Build (portal)
working-directory: ./portal
run: meson setup ./ _build --prefix /usr && ninja -C _build
Expand Down
11 changes: 11 additions & 0 deletions pam/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use std::env::var_os;

fn main() {
if var_os("DOCS_RS").is_some() {
// libpam isn't available on docs.rs, and we don't need to link
// against it to build the documentation.
return;
}

println!("cargo::rustc-link-lib=pam");
}
Loading