Mercurial > crates > nonstick
view .github/workflows/build.yml @ 44:50371046c61a default tip
Add support for pam_get_authtok and minor cleanups.
This change adds the pam_get_authtok function for PAM modules,
as well as performing a few cleanups:
- Pattern match in a few more places.
- Pull out string-copying into a function.
- Format and run clippy.
- Replace outdated PAM doc links with man7.org pages.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sat, 08 Mar 2025 19:29:46 -0500 |
parents | 80d496e87f8f |
children |
line wrap: on
line source
on: push: branches: - master workflow_call: name: Build & publish jobs: build: runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v2 - name: Install PAM dev files run: sudo apt-get install -y libpam0g-dev - name: Use cargo cache uses: actions/cache@v2 with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - name: Publish module uses: katyo/publish-crates@v1 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} check-repo: ${{ github.event_name == 'push' }} ignore-unpublished-changes: true # Only publish pam module, as pam-http and pam-sober are example projects path: pam args: --package pam-bindings