From 7baab76c89652e871b4821413b76dcc32a1d20e9 Mon Sep 17 00:00:00 2001 From: core Date: Sun, 7 Apr 2024 13:10:49 -0400 Subject: [PATCH] sccache for server --- .woodpecker/.server.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.woodpecker/.server.yaml b/.woodpecker/.server.yaml index f61469f896100de624d1e63550628e8e1da3c5a4..9a413cae496147c4658849be62acdf85a834f962 100644 --- a/.woodpecker/.server.yaml +++ b/.woodpecker/.server.yaml @@ -6,6 +6,14 @@ steps: - rustfmt **/*.rs --check --edition 2021 --color always environment: CARGO_INCREMENTAL: "0" + SCCACHE_ENDPOINT: https://eaa2f15b55afa10361622796530d22c6.r2.cloudflarestorage.com/stk-sccache + SCCACHE_BUCKET: stk-sccache + SCCACHE_REGION: auto + AWS_ACCESS_KEY_ID: + from_secret: s3_id + AWS_SECRET_ACCESS_KEY: + from_secret: s3_key + RUSTC_WRAPPER: sccache - name: server_clippy image: registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/build_env:2024040603 commands: @@ -13,6 +21,14 @@ steps: - cargo clippy --profile release-ci --color always environment: CARGO_INCREMENTAL: "0" + SCCACHE_ENDPOINT: https://eaa2f15b55afa10361622796530d22c6.r2.cloudflarestorage.com/stk-sccache + SCCACHE_BUCKET: stk-sccache + SCCACHE_REGION: auto + AWS_ACCESS_KEY_ID: + from_secret: s3_id + AWS_SECRET_ACCESS_KEY: + from_secret: s3_key + RUSTC_WRAPPER: sccache - name: server_build image: registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/build_env:2024040603 commands: @@ -20,3 +36,11 @@ steps: - cargo build --profile release-ci --color always environment: CARGO_INCREMENTAL: "0" + SCCACHE_ENDPOINT: https://eaa2f15b55afa10361622796530d22c6.r2.cloudflarestorage.com/stk-sccache + SCCACHE_BUCKET: stk-sccache + SCCACHE_REGION: auto + AWS_ACCESS_KEY_ID: + from_secret: s3_id + AWS_SECRET_ACCESS_KEY: + from_secret: s3_key + RUSTC_WRAPPER: sccache \ No newline at end of file