version: 2
jobs:
build:
docker:
- image: ebkalderon/renderdoc-rs-circleci:1.40.0
environment:
TZ: "/usr/share/zoneinfo/Asia/Singapore"
steps:
- checkout
- restore_cache:
key: project-cache
- run:
name: Check formatting
command: |
rustup component add rustfmt
cargo fmt --all -- --check
- run:
name: Test
command: |
cargo test --all
- run:
name: Stable Build
command: |
rustc --version --verbose
cargo --version --verbose
cargo build --all
- run:
name: Nightly Build
command: |
rustup toolchain add nightly
rustup run nightly rustc --version --verbose
rustup run nightly cargo --version --verbose
rustup run nightly cargo build --all
- save_cache:
key: project-cache
paths:
- "~/.cargo"
- "./target"