Add sccache
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Daan Boerlage 2023-11-18 21:56:28 +01:00
parent 9f9c96454d
commit 0de3946d36
Signed by: daan
GPG key ID: FCE070E1E4956606

View file

@ -8,10 +8,14 @@ steps:
environment: environment:
HOSTNAME: 'https://sleutel.boerlage.me' HOSTNAME: 'https://sleutel.boerlage.me'
RUSTC_WRAPPER: '/usr/bin/sccache' RUSTC_WRAPPER: '/usr/bin/sccache'
SCCACHE_BUCKET: 'sccache'
SCCACHE_ENDPOINT: '10.1.1.148:9000'
SCCACHE_S3_USE_SSL: 'off'
CARGO_INCREMENTAL: '0' CARGO_INCREMENTAL: '0'
secrets: [ sccache_aws_access_key_id, sccache_aws_secret_access_key ]
commands: commands:
- apk add sccache clang build-base protoc - apk add sccache clang build-base protoc
- cargo build --release - AWS_ACCESS_KEY_ID=$SCCACHE_AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$SCCACHE_AWS_SECRET_ACCESS_KEY cargo build --release
containerize: containerize:
image: docker:24-dind image: docker:24-dind
when: when: