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
|
||||
pipeline:
|
||||
clippy:
|
||||
add-sccache:
|
||||
image: 'rust:1.57'
|
||||
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
|
||||
secrets:
|
||||
- aws_access_key_id
|
||||
- aws_secret_access_key
|
||||
when:
|
||||
event: pull_request
|
||||
event: push
|
||||
|
||||
tests:
|
||||
image: 'rust:1.57'
|
||||
commands:
|
||||
- export RUSTC_WRAPPER="$PWD"/sccache
|
||||
- cargo test
|
||||
when:
|
||||
event: pull_request
|
||||
|
|
Loading…
Reference in New Issue