mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
36 lines
912 B
YAML
36 lines
912 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: rust:1.31
|
|
steps:
|
|
- checkout
|
|
# Load cargo target from cache if possible.
|
|
# Multiple caches are used to increase the chance of a cache hit.
|
|
- restore_cache:
|
|
keys:
|
|
- v1-cargo-cache-{{ arch }}-{{ .Branch }}
|
|
- v1-cargo-cache-{{ arch }}
|
|
|
|
# Show versions
|
|
- run: rustc --version && cargo --version
|
|
|
|
# Build
|
|
- run: cargo build
|
|
- run: cargo build --features logging
|
|
- run: cargo build --no-default-features
|
|
|
|
# Run tests
|
|
- run: cargo test
|
|
- run: cargo test --no-default-features
|
|
|
|
- save_cache:
|
|
key: v1-cargo-cache-{{ arch }}-{{ .Branch }}
|
|
paths:
|
|
- target
|
|
- /usr/local/cargo
|
|
- save_cache:
|
|
key: v1-cargo-cache-{{ arch }}
|
|
paths:
|
|
- target
|
|
- /usr/local/cargo
|