diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 266535cab33a58e2e840301fbf6adc03aa09c780..8c14c07baa0e7772f5a567d47648211e9e16b3cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,11 +24,9 @@ # # Format: Your cachix cache host name without the ".cachix.org" suffix. # Example: mycache (for mycache.cachix.org) # - # For this to work, you also need to set the CACHIX_SIGNING_KEY or + # For this to work, you also need to set the CACHIX_SIGNING_KEY secret -on: # rebuild everyday at 2:51 - # Github found at - # https://github.com//nur-packages/settings/secrets + - cron: '51 2 * * *' cachixName: - nixPath: @@ -48,15 +46,11 @@ run: nix-instantiate --eval -E '(import {}).lib.version' - name: Setup cachix uses: cachix/cachix-action@v10 push: - # TIP: Choose a random time here so not all repositories are build at once: - push: # https://www.random.org/clock-times/?num=1&earliest=01%3A00&latest=08%3A00&interval=5&format=html&rnd=new with: name: ${{ matrix.cachixName }} signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' schedule: -name: "Build and populate cache" - schedule: on: run: | nix-env -f . -qa \* --meta --xml \ @@ -70,6 +64,5 @@ - name: Build nix packages # TODO switch to default nixpkgs channel once nix-build-uncached 1.0.0 is in stable run: nix run -I 'nixpkgs=channel:nixos-unstable' nixpkgs.nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs - name: Trigger NUR update - # Don't replace here! if: ${{ matrix.nurRepo != '' }} run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=${{ matrix.nurRepo }}"