Added sccache config
ci/woodpecker/push/rustfmt Pipeline failed Details
ci/woodpecker/push/test Pipeline failed Details

dev
Jef Roosens 2022-01-03 17:21:56 +01:00
parent 5b75b49da0
commit 45b16480c6
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 18 additions and 2 deletions

View File

@ -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