# HG changeset patch # User Anthony Nowell # Date 1654705693 25200 # Node ID 3b2ff50db0104f075ae116b8a5b84d1f919258f1 # Parent 86113e45f88f887af9a0a3038b4c837b5286429a# Parent ec70822cbdef20805c1ad69e2e1f2fc732e0b821 Merge pull request #8 from bossmc/master Various enhancements/fixes diff -r ec70822cbdef -r 3b2ff50db010 .github/workflows/build.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.github/workflows/build.yml Wed Jun 08 09:28:13 2022 -0700 @@ -0,0 +1,74 @@ +on: + pull_request: + branches: + - master + workflow_call: + +name: Build + +jobs: + check: + name: Check & Lint + 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: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: check + args: --manifest-path pam/Cargo.toml + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + args: --manifest-path pam/Cargo.toml + + - name: Run cargo check on pam-http + uses: actions-rs/cargo@v1 + with: + command: check + args: --manifest-path pam-http/Cargo.toml + + - name: Run cargo check on pam-sober + uses: actions-rs/cargo@v1 + with: + command: check + args: --manifest-path pam-sober/Cargo.toml + + - name: Run cargo fmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --manifest-path pam/Cargo.toml --all --check + + - name: Run cargo clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --manifest-path pam/Cargo.toml -- -D warnings + +