From 920fa1109bbbdc6587de58ea5fdc18b30a05293f Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Tue, 28 Jun 2022 18:53:36 +0200 Subject: [PATCH] chore: CI: ccache permissions --- .github/workflows/nix-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml index 2501209423..413c0f72f0 100644 --- a/.github/workflows/nix-ci.yml +++ b/.github/workflows/nix-ci.yml @@ -48,6 +48,11 @@ jobs: run: | # Nix seems to mutate the cache, so make a copy cp -r nix-store-cache nix-store-cache-copy || true + - name: Prepare CCache Cache + shell: bash -euxo pipefail {0} + run: | + sudo mkdir -m0770 -p /nix/var/cache/ccache + sudo chown -R $USER /nix/var/cache/ccache - name: Setup CCache Cache uses: actions/cache@v2 with: @@ -59,7 +64,6 @@ jobs: - name: Further Set Up CCache Cache shell: bash -euxo pipefail {0} run: | - sudo mkdir -m0770 -p /nix/var/cache/ccache sudo chown -R root:nixbld /nix/var/cache/ccache - uses: cachix/cachix-action@v10 with: