From 8ba2c6cc9bf7004eb812dafc971a321e108eef84 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 11 May 2025 01:22:03 -0400 Subject: [PATCH] cache devshell in ci --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9864f3..b9be0e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,7 +42,17 @@ jobs: with: persist-credentials: false - - run: nix build -L . + - name: cache devshell + run: | + nix build .#devShells.$(nix eval --impure --raw --expr 'builtins.currentSystem').default + nix run \ + github:cything/nixcp/test-in-ci -- push \ + --bucket nixcache \ + --signing-key ${{ runner.temp }}/cache-priv-key.pem \ + result + + - name: build + run: nix build -L . - name: cache run: |