-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
39 lines (36 loc) · 828 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
stages:
- build
default:
cache:
paths:
- .cargo/bin
- .cargo/registry/index
- .cargo/registry/cache
- .cargo/git/db
variables:
CARGO_HOME: $CI_PROJECT_DIR/.cargo
# better performance for caching small files
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/1797
FF_USE_FASTZIP: 1
rust:
stage: build
interruptible: true
parallel:
matrix:
- BUILD_IMAGE:
- "rust:1.66"
- "rust:1.67"
- "rust:1.68"
- "rust:1.69"
- "rust:1.70"
- "rust:1.71"
- "rustlang/rust:nightly"
image: $BUILD_IMAGE
before_script:
- rustup component add rustfmt
- rustup component add clippy
script:
- cargo build --verbose
- cargo test --verbose
- cargo fmt --all --check
- cargo clippy --no-deps