Added sccache config
parent
5b75b49da0
commit
45b16480c6
|
@ -1,15 +1,31 @@
|
||||||
# When block for each step is temporary until top-level when is properly implemented
|
# When block for each step is temporary until top-level when is properly implemented
|
||||||
pipeline:
|
pipeline:
|
||||||
clippy:
|
add-sccache:
|
||||||
image: 'rust:1.57'
|
image: 'rust:1.57'
|
||||||
commands:
|
commands:
|
||||||
|
- curl https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz -Lo - | tar xzf -
|
||||||
|
- mv sccache-v0.2.15-x86_64-unknown-linux-musl/sccache .
|
||||||
|
|
||||||
|
clippy:
|
||||||
|
image: 'rust:1.57'
|
||||||
|
environment:
|
||||||
|
- SCCACHE_BUCKET=rbci
|
||||||
|
- SCCACHE_ENDPOINT=https://s3.rustybever.be
|
||||||
|
- SCCACHE_S3_USE_SSL=true
|
||||||
|
commands:
|
||||||
|
- export RUSTC_WRAPPER="$PWD"/sccache
|
||||||
|
- export SCCACHE_S3_KEY_PREFIX=$CI_REPO_NAME
|
||||||
- cargo clippy -- -D clippy::all --no-deps
|
- cargo clippy -- -D clippy::all --no-deps
|
||||||
|
secrets:
|
||||||
|
- aws_access_key_id
|
||||||
|
- aws_secret_access_key
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: push
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
image: 'rust:1.57'
|
image: 'rust:1.57'
|
||||||
commands:
|
commands:
|
||||||
|
- export RUSTC_WRAPPER="$PWD"/sccache
|
||||||
- cargo test
|
- cargo test
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
Loading…
Reference in New Issue