This repository was archived by the owner on Nov 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ variables:
37
37
before_script :
38
38
- rustup show
39
39
- cargo --version
40
+ retry :
41
+ max : 2
42
+ when :
43
+ - runner_system_failure
44
+ - unknown_failure
45
+ - api_failure
40
46
tags :
41
47
- linux-docker
42
48
@@ -63,42 +69,35 @@ cargo-check 0 3:
63
69
<< : *docker-cache-status
64
70
script :
65
71
- time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always
66
- - sccache --stop-server
72
+ - sccache --show-stats
67
73
68
74
cargo-check 1 3 :
69
75
stage : test
70
76
<< : *docker-cache-status
71
77
script :
72
78
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features --verbose --color=always
73
- - sccache --stop-server
79
+ - sccache --show-stats
74
80
75
81
cargo-check 2 3 :
76
82
stage : test
77
83
<< : *docker-cache-status
78
84
script :
79
85
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio" --verbose --color=always
80
- - sccache --stop-server
86
+ - sccache --show-stats
81
87
82
88
cargo-check-evmbin :
83
89
stage : test
84
90
<< : *docker-cache-status
85
91
script :
86
92
- time cargo check -p evmbin --target $CARGO_TARGET --locked --verbose --color=always
87
- - sccache -s
88
-
89
- cargo-check-evmbin :
90
- stage : test
91
- << : *docker-cache-status
92
- script :
93
- - time cargo check -p evmbin --target $CARGO_TARGET --locked --verbose --color=always
94
- - sccache -s
93
+ - sccache --show-stats
95
94
96
95
cargo-check-benches :
97
96
stage : test
98
97
<< : *docker-cache-status
99
98
script :
100
99
- time cargo check --all --benches --target $CARGO_TARGET --locked --verbose --color=always
101
- - sccache -s
100
+ - sccache --show-stats
102
101
103
102
cargo-audit :
104
103
stage : test
Original file line number Diff line number Diff line change @@ -13,15 +13,18 @@ echo "CC: " $CC
13
13
echo " CXX: " $CXX
14
14
# strip ON
15
15
export RUSTFLAGS=" -C link-arg=-s"
16
- # Linker for crosscomile
17
- echo " _____ Linker _____"
18
- cat .cargo/config
19
16
20
17
echo " _____ Building target: " $CARGO_TARGET " _____"
21
18
if [ " ${CARGO_TARGET} " = " armv7-linux-androideabi" ]
22
19
then
23
20
time cargo build --target $CARGO_TARGET --verbose --color=always --release -p parity-clib --features final
24
21
else
22
+ if [ " ${CARGO_TARGET} " = " x86_64-unknown-linux-gnu" ] || [ " ${CARGO_TARGET} " = " x86_64-apple-darwin" ]
23
+ then
24
+ # NOTE: Enables the aes-ni instructions for RustCrypto dependency.
25
+ # If you change this please remember to also update .cargo/config
26
+ export RUSTFLAGS=" $RUSTFLAGS -Ctarget-feature=+aes,+sse2,+ssse3"
27
+ fi
25
28
time cargo build --target $CARGO_TARGET --verbose --color=always --release --features final
26
29
time cargo build --target $CARGO_TARGET --verbose --color=always --release -p evmbin
27
30
time cargo build --target $CARGO_TARGET --verbose --color=always --release -p ethstore-cli
53
56
then
54
57
./parity tools hash $binary > $binary .sha3
55
58
else
56
- echo " > ${binary} cannot be hashed with cross-compiled binary (keccak256)"
59
+ echo " >[WARN] ${binary} cannot be hashed with cross-compiled binary (keccak256)"
57
60
fi
58
61
done
59
62
# show sccache statistics
60
- sccache --stop-server
63
+ sccache --show-stats
You can’t perform that action at this time.
0 commit comments