ci: speed up on no-op

This commit is contained in:
zimbatm 2021-01-18 18:27:37 +01:00
parent 674a107750
commit e3e24d749f
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 9 additions and 1 deletions
.github/workflows
ci.sh

View file

@ -12,4 +12,4 @@ jobs:
extraPullNames: nixpkgs-update
name: nix-community
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
- run: nix-build
- run: ./ci.sh

8
ci.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Run this command to reproduce CI
set -euo pipefail
cd "$(dirname "$0")"
out=$(nix-build nix -A nix-build-uncached)
"$out/bin/nix-build-uncached"