From e1fba4290b98e5a9f873f5345af22ada70384be8 Mon Sep 17 00:00:00 2001 From: Douglas Reis Date: Wed, 4 Mar 2026 14:00:17 +0000 Subject: [PATCH] [ci] Speed up by fixing the nix instalation in ubuntu containers --- .github/workflows/ci.yml | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) 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: