diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index 80743eb..6572330 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -12,4 +12,4 @@ jobs:
         extraPullNames: nixpkgs-update
         name: nix-community
         signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
-    - run: nix-build
+    - run: ./ci.sh
diff --git a/ci.sh b/ci.sh
new file mode 100755
index 0000000..db64f69
--- /dev/null
+++ b/ci.sh
@@ -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"