Add sccache
Some checks failed
ci/woodpecker/push/build Pipeline failed

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

View file

@ -8,10 +8,13 @@ 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'
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 - SCCACHE_S3_USE_SSL=false 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: