variables:
  DEBUG: 'true'
  RUSTC_TARGET: x86_64-unknown-linux-gnu

default:
  image: rust:1.95-bullseye

Test:
  script:
    - cargo test

Publish:
  needs:
    - Test
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
  script:
    - cargo publish --token $CARGO_PUBLISH_TOKEN
