-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
102 lines (94 loc) · 2.41 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
stages:
- lint
- build
fmt:
stage: lint
image: rust:latest
before_script:
- rustup component add rustfmt
script:
- cargo fmt --version
- cargo fmt --all -- --check
tags:
- asprunner
clippy:
stage: lint
image: rust:latest
before_script:
- rustup component add clippy
script:
- cargo clippy --version
- cargo clippy --all-targets --all-features -- -D warnings
tags:
- asprunner
check-for-todos:
stage: lint
image: rust:latest
script:
- make check-for-todos
artifacts:
when: always
reports:
paths:
- ./check_for_todos_results.txt
expire_in: 2 week
allow_failure: true
tags:
- asprunner
msrv:
stage: lint
image: rust:latest
before_script:
- cargo install cargo-msrv
script:
- make check-msrv
- cargo msrv --verify
allow_failure: true
tags:
- asprunner
default-latest:
stage: build
image: rust:latest
script:
- rustc --version
- rustup target add riscv32imac-unknown-none-elf
- cargo build --verbose
- cargo build --target riscv32imac-unknown-none-elf --no-default-features
- cargo test --verbose
tags:
- asprunner
default-nightly:
stage: build
image: rustlang/rust:nightly
script:
- rustc --version
- rustup target add riscv32imac-unknown-none-elf
- cargo build --verbose
- cargo build --verbose --target riscv32imac-unknown-none-elf --no-default-features
- cargo test --verbose
allow_failure: true
tags:
- asprunner
feature-latest:
stage: build
image: rust:latest
script:
- rustc --version
- rustup target add riscv32imac-unknown-none-elf
- MAX_HASH_OPTIMIZATIONS=10 THREADS=2 cargo build --features fast_verify --verbose
- MAX_HASH_OPTIMIZATIONS=10 cargo build --features fast_verify --verbose --target riscv32imac-unknown-none-elf --no-default-features
- MAX_HASH_OPTIMIZATIONS=10 cargo test --features fast_verify --verbose
tags:
- asprunner
feature-nightly:
stage: build
image: rustlang/rust:nightly
script:
- rustc --version
- rustup target add riscv32imac-unknown-none-elf
- MAX_HASH_OPTIMIZATIONS=10 THREADS=2 cargo build --features fast_verify --verbose
- MAX_HASH_OPTIMIZATIONS=10 cargo build --features fast_verify --verbose --target riscv32imac-unknown-none-elf --no-default-features
- MAX_HASH_OPTIMIZATIONS=10 cargo test --features fast_verify --verbose
allow_failure: true
tags:
- asprunner