Simplify how paths are pushed

Previously we were setting up Nix build hook to make sure all paths are
synced to cachix.

This had a few flaws:

- nix-daemon had to be restarted, resulting into a few seconds extra
  setup per each build
- spurious error on macos due to nix-daemon socket not ready in time
- significant overhead since syncing to cachix was synchronous for each
  derivation built

Now we just look for new store paths and push those after nix-build.
This commit is contained in:
Domen Kožar 2020-02-24 14:14:49 +01:00
commit 7bea2cc0c1
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
3 changed files with 45 additions and 90 deletions

View file

@ -14,7 +14,7 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- uses: cachix/install-nix-action@v6
- uses: cachix/install-nix-action@v7
- name: Test public cache
uses: ./
with: