stages:
  - build

build:
  stage: build
  image: rust:bullseye
  before_script:
    - apt-get -y update
    - apt-get -y install libpam0g-dev
  script:
    - cargo build --release
    - strip target/release/libnss_pam_oidc.so
  artifacts:
    paths:
      - target/release/libnss_pam_oidc.so
