28 lines
451 B
YAML
28 lines
451 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: rust:1.77
|
|
commands:
|
|
- cargo build
|
|
volumes: &caches
|
|
- name: cargo-cache
|
|
path: /cache/cargo
|
|
environment: &env
|
|
CARGO_HOME: /cache/cargo
|
|
|
|
- name: test
|
|
image: rust:1.77
|
|
commands:
|
|
- cargo test --all-features
|
|
volumes: *caches
|
|
environment: *env
|
|
depends_on:
|
|
- build
|
|
|
|
volumes:
|
|
- name: cargo-cache
|
|
temp: {}
|