File tree Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,37 @@ executors:
10
10
jobs :
11
11
build :
12
12
executor : docker
13
+ parameters :
14
+ release :
15
+ type : boolean
16
+ default : false
13
17
steps :
18
+ - install_deps
19
+ - checkout
20
+ - restore_cache :
21
+ keys :
22
+ - cargo-cache-v1-{{ arch }}-{{ checksum "./Cargo.lock" }}
23
+ - cargo-cache-v1-{{ arch }}
14
24
- run :
15
- name : The First Step
25
+ name : Build
16
26
command : |
17
- echo 'Hello world!'
18
- echo 'This is the delivery pipeline'
27
+ if [ "<<parameters.release" == "true" ]; then
28
+ cargo build --release
29
+ cargo test --release
30
+ else
31
+ cargo build
32
+ cargo test
33
+ fi
34
+ - save_cache :
35
+ key : cargo-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "./Cargo.lock" }}
36
+ paths :
37
+ - ./target
38
+ commands :
39
+ install_deps :
40
+ steps :
41
+ - run :
42
+ name : Install deps
43
+ command : |
44
+ apt-get update -qq
45
+ apt-get install -y gcc libegl1-mesa-dev libgles2-mesa-dev
19
46
You can’t perform that action at this time.
0 commit comments