From 31fa86302f549627743b7f14488f570343801ba3 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 30 Jun 2024 00:57:01 +0100 Subject: [PATCH] CI(neon-build): enable sccache --- .github/workflows/build_and_test.yml | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index a25806d67e..50eba54584 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -214,6 +214,9 @@ jobs: BUILD_TYPE: ${{ matrix.build_type }} GIT_VERSION: ${{ github.event.pull_request.head.sha || github.sha }} BUILD_TAG: ${{ needs.tag.outputs.build-tag }} + SCCACHE_BUCKET: neon-github-dev + SCCACHE_REGION: eu-central-1 + SCCACHE_S3_KEY_PREFIX: sccache steps: - name: Fix git ownership diff --git a/Dockerfile b/Dockerfile index 4df7366901..ce2da7bc97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,9 +32,9 @@ ARG BUILD_TAG # Enable https://github.com/mozilla/sccache to cache Rust crates' compilation results in Docker builds. # Set up sccache to use an AWS S3 bucket for cache results, to reuse it between `docker build` invocations. ARG RUSTC_WRAPPER +ARG SCCACHE_BUCKET=neon-github-dev ARG SCCACHE_REGION=eu-central-1 ARG SCCACHE_S3_KEY_PREFIX=sccache -ARG SCCACHE_BUCKET=neon-github-dev ARG AWS_ACCESS_KEY_ID ARG AWS_SECRET_ACCESS_KEY