stages: - build build_and_test: image: rust:alpine3.16 variables: CARGO_HOME: ${CI_PROJECT_DIR}/.cargo cache: key: $CI_COMMIT_REF_SLUG paths: - target/ - .cargo/bin - .cargo/registry/index - .cargo/registry/cache stage: build before_script: - apk add openssl openssl-dev musl-dev script: - cargo build - cargo test