From 843238171f451cccf27138f2872753e2683f1a59 Mon Sep 17 00:00:00 2001 From: MasterPtato <23087326+MasterPtato@users.noreply.github.com> Date: Fri, 22 Nov 2024 04:14:59 +0000 Subject: [PATCH] chore: remove sccache (#1381) Fixes RVT-3911 ## Changes --- .github/actions/pre-init-distributed/action.yaml | 16 ---------------- .github/actions/pre-init/action.yaml | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/.github/actions/pre-init-distributed/action.yaml b/.github/actions/pre-init-distributed/action.yaml index 4114920fd1..77b8002bca 100644 --- a/.github/actions/pre-init-distributed/action.yaml +++ b/.github/actions/pre-init-distributed/action.yaml @@ -8,10 +8,6 @@ description: Set up Nix and Bolt # shell: bash -e {0} inputs: - SCCACHE_AWS_SECRET_ACCESS_KEY: - required: true - SCCACHE_AWS_ACCESS_KEY_ID: - required: true DOCKER_CI_ACCESS_TOKEN: required: true @@ -29,18 +25,6 @@ runs: ${{ runner.os }}-nix-${{ hashfiles('./shell.nix', './nix/**/*.nix') }} ${{ runner.os }}-nix- - # We can't use the GitHub cache because it has a max size of 10 GB - - name: Enable sccache - shell: bash -e {0} - run: | - # Expose sccache config for all future calls of nix-shell, which configures sccache respectively - echo 'USE_SCCACHE=1' >> $GITHUB_ENV - echo 'SCCACHE_BUCKET=rivet-sccache' >> $GITHUB_ENV - echo 'SCCACHE_ENDPOINT=https://2a94c6a0ced8d35ea63cddc86c2681e7.r2.cloudflarestorage.com/rivet-sccache' >> $GITHUB_ENV - echo 'SCCACHE_REGION=auto' >> $GITHUB_ENV - echo 'AWS_SECRET_ACCESS_KEY=${{ inputs.SCCACHE_AWS_SECRET_ACCESS_KEY }}' >> $GITHUB_ENV - echo 'AWS_ACCESS_KEY_ID=${{ inputs.SCCACHE_AWS_ACCESS_KEY_ID }}' >> $GITHUB_ENV - # Cache generated Bolt files in order to prevent needless rebuilding - name: Bolt Cache uses: actions/cache@v3 diff --git a/.github/actions/pre-init/action.yaml b/.github/actions/pre-init/action.yaml index 75a7447196..bcec2fd3f0 100644 --- a/.github/actions/pre-init/action.yaml +++ b/.github/actions/pre-init/action.yaml @@ -8,10 +8,6 @@ description: Set up Nix and Bolt # shell: bash -e {0} inputs: - SCCACHE_AWS_SECRET_ACCESS_KEY: - required: true - SCCACHE_AWS_ACCESS_KEY_ID: - required: true OP_SERVICE_ACCOUNT_TOKEN: required: true @@ -29,18 +25,6 @@ runs: ${{ runner.os }}-nix-${{ hashfiles('./shell.nix', './nix/**/*.nix') }} ${{ runner.os }}-nix- - # We can't use the GitHub cache because it has a max size of 10 GB - - name: Enable sccache - shell: bash -e {0} - run: | - # Expose sccache config for all future calls of nix-shell, which configures sccache respectively - echo 'USE_SCCACHE=1' >> $GITHUB_ENV - echo 'SCCACHE_BUCKET=rivet-sccache' >> $GITHUB_ENV - echo 'SCCACHE_ENDPOINT=https://2a94c6a0ced8d35ea63cddc86c2681e7.r2.cloudflarestorage.com/rivet-sccache' >> $GITHUB_ENV - echo 'SCCACHE_REGION=auto' >> $GITHUB_ENV - echo 'AWS_SECRET_ACCESS_KEY=${{ inputs.SCCACHE_AWS_SECRET_ACCESS_KEY }}' >> $GITHUB_ENV - echo 'AWS_ACCESS_KEY_ID=${{ inputs.SCCACHE_AWS_ACCESS_KEY_ID }}' >> $GITHUB_ENV - # MARK: Nix - uses: cachix/install-nix-action@v22 with: