Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Beta sccache backport (#11254)
Browse files Browse the repository at this point in the history
fix check-benches
  • Loading branch information
General-Beck authored and s3krit committed Nov 12, 2019
1 parent bc90ba2 commit 753b923
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 11 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ variables:
before_script:
- rustup show
- cargo --version
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
tags:
- linux-docker

Expand All @@ -63,28 +69,28 @@ cargo-check 0 3:
<<: *docker-cache-status
script:
- time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always
- sccache --stop-server
- sccache --show-stats

cargo-check 1 3:
stage: test
<<: *docker-cache-status
script:
- 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:
stage: test
<<: *docker-cache-status
script:
- 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:
stage: test
<<: *docker-cache-status
script:
- time cargo check -p evmbin --target $CARGO_TARGET --locked --verbose --color=always
- sccache -s
- sccache --show-stats

cargo-check-benches:
stage: test
Expand All @@ -94,8 +100,7 @@ cargo-check-benches:
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)
)
- sccache -s
allow_failure: true # temp
- sccache --show-stats

cargo-audit:
stage: test
Expand Down
4 changes: 2 additions & 2 deletions scripts/gitlab/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ do
then
./parity tools hash $binary > $binary.sha3
else
echo "> ${binary} cannot be hashed with cross-compiled binary (keccak256)"
echo ">[WARN] ${binary} cannot be hashed with cross-compiled binary (keccak256)"
fi
done
#show sccache statistics
sccache --stop-server
sccache --show-stats

0 comments on commit 753b923

Please sign in to comment.