Skip to content
Snippets Groups Projects
.gitlab-ci.yml 474 B
image: rust:slim-bullseye

stages:
  - build

before_script:
  - apt update && apt install -y pkg-config libssl-dev

rust-latest:
  stage: build
  cache:
    key: shared-cache
    paths:
      - target/
  script:
    - cargo build --verbose
    - cargo test --verbose

rust-nightly:
  stage: build
  image: rustlang/rust:nightly
  allow_failure: true
  cache:
    key: shared-cache
    paths:
      - target/
  script:
    - cargo build --verbose
    - cargo test --verbose