diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b54201c..8059bbfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,18 +89,9 @@ jobs: steps: - uses: actions/checkout@v5 - # This step is a workaround and should be removed when the container is fixed. - - name: Uninstall Nix - run: | - sudo rm -rf /etc/nix /etc/profile.d/nix.sh /etc/tmpfiles.d/nix-daemon.conf \ - /nix ~root/.nix-channels ~root/.nix-defexpr ~root/.nix-profile ~root/.cache/nix - - name: Install Nix - uses: cachix/install-nix-action@v27 - with: - extra_nix_config: | - substituters = https://nix-cache.lowrisc.org/public/ https://cache.nixos.org/ - trusted-public-keys = nix-cache.lowrisc.org-public-1:O6JLD0yXzaJDPiQW1meVu32JIDViuaPtGDfjlOopU7o= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + run: | + sudo chown -R $(whoami) /nix - name: Hash Bitstream id: hash-bitstream @@ -126,18 +117,9 @@ jobs: steps: - uses: actions/checkout@v5 - # This step is a workaround and should be removed when the container is fixed. - - name: Uninstall Nix - run: | - sudo rm -rf /etc/nix /etc/profile.d/nix.sh /etc/tmpfiles.d/nix-daemon.conf \ - /nix ~root/.nix-channels ~root/.nix-defexpr ~root/.nix-profile ~root/.cache/nix - - name: Install Nix - uses: cachix/install-nix-action@v27 - with: - extra_nix_config: | - substituters = https://nix-cache.lowrisc.org/public/ https://cache.nixos.org/ - trusted-public-keys = nix-cache.lowrisc.org-public-1:O6JLD0yXzaJDPiQW1meVu32JIDViuaPtGDfjlOopU7o= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + run: | + sudo chown -R $(whoami) /nix - uses: actions/cache@v5 with: