-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
51 lines (47 loc) · 1.02 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
stages:
- build
- clippy
- fmt
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
build:
image: "rustlang/rust:nightly"
before_script:
- apt-get update -qq && apt-get install -y -qq libssl-dev libsodium-dev libopus-dev pkg-config
- cargo --version
- rustc --version
stage: build
script:
- cargo build --release
cache:
untracked: true
paths:
- target/
- cargo/
artifacts:
paths:
- target/release/arc_bot
expire_in: 5 day
clippy:
image: "rustlang/rust:nightly"
before_script:
- apt-get update -qq && apt-get install -y -qq libssl-dev libsodium-dev libopus-dev pkg-config
- cargo --version
- rustc --version
stage: clippy
script:
- cargo clippy
cache:
untracked: true
paths:
- target/
- cargo/
fmt:
image: "rustlang/rust:nightly"
before_script:
- apt-get update -qq && apt-get install -y -qq libssl-dev libsodium-dev libopus-dev pkg-config
- cargo --version
- rustc --version
stage: fmt
script:
- cargo fmt