Beta sccache backport (#11254)

fix check-benches
This commit is contained in:
Denis S. Soldatov aka General-Beck 2019-11-12 20:54:05 +03:00 committed by s3krit
parent bc90ba2863
commit 753b923ee9
2 changed files with 13 additions and 8 deletions

View File

@ -37,6 +37,12 @@ variables:
before_script: before_script:
- rustup show - rustup show
- cargo --version - cargo --version
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
tags: tags:
- linux-docker - linux-docker
@ -63,28 +69,28 @@ cargo-check 0 3:
<<: *docker-cache-status <<: *docker-cache-status
script: script:
- time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always - time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always
- sccache --stop-server - sccache --show-stats
cargo-check 1 3: cargo-check 1 3:
stage: test stage: test
<<: *docker-cache-status <<: *docker-cache-status
script: script:
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features --verbose --color=always - time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features --verbose --color=always
- sccache --stop-server - sccache --show-stats
cargo-check 2 3: cargo-check 2 3:
stage: test stage: test
<<: *docker-cache-status <<: *docker-cache-status
script: script:
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio" --verbose --color=always - time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio" --verbose --color=always
- sccache --stop-server - sccache --show-stats
cargo-check-evmbin: cargo-check-evmbin:
stage: test stage: test
<<: *docker-cache-status <<: *docker-cache-status
script: script:
- time cargo check -p evmbin --target $CARGO_TARGET --locked --verbose --color=always - time cargo check -p evmbin --target $CARGO_TARGET --locked --verbose --color=always
- sccache -s - sccache --show-stats
cargo-check-benches: cargo-check-benches:
stage: test stage: test
@ -94,8 +100,7 @@ cargo-check-benches:
cargo check --all --benches --exclude ethash --target $CARGO_TARGET --locked --verbose --color=always; cargo check --all --benches --exclude ethash --target $CARGO_TARGET --locked --verbose --color=always;
(cd ethash; time cargo check --benches --features bench --target $CARGO_TARGET --locked --verbose --color=always) (cd ethash; time cargo check --benches --features bench --target $CARGO_TARGET --locked --verbose --color=always)
) )
- sccache -s - sccache --show-stats
allow_failure: true # temp
cargo-audit: cargo-audit:
stage: test stage: test

View File

@ -56,8 +56,8 @@ do
then then
./parity tools hash $binary > $binary.sha3 ./parity tools hash $binary > $binary.sha3
else else
echo "> ${binary} cannot be hashed with cross-compiled binary (keccak256)" echo ">[WARN] ${binary} cannot be hashed with cross-compiled binary (keccak256)"
fi fi
done done
#show sccache statistics #show sccache statistics
sccache --stop-server sccache --show-stats