-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
47 lines (40 loc) · 978 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
47 lines (40 loc) · 978 Bytes
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
40
41
42
43
44
45
46
47
# Setup a cache to cache job parts between jobs to ensure faster builds
cache:
key: "$CI_JOB_NAME"
untracked: true
paths:
- $HOME/.cargo/
- target/
# Set any required environment variables here
variables:
RUST_BACKTRACE: "FULL"
image: "rust:latest"
stages:
- install
- test
install:
stage: install
script:
- rustup default stable
check:
stage: test
before_script:
- rustup component add rustfmt clippy
- cargo install cargo-audit
script:
- cargo check --verbose
- cargo fmt -- --check
- cargo clippy -- -D warnings
- cargo audit
debug:
stage: test
before_script:
- apt update && apt install -yy gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user-static
script:
- RUST_MIN_STACK=8388608 cargo test
release:
stage: test
before_script:
- apt update && apt install -yy gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user-static
script:
- RUST_MIN_STACK=8388608 cargo test --release