Skip to content

Commit

Permalink
ci: push & pin to cachix
Browse files Browse the repository at this point in the history
This will push and pin only the devShell, to save space.
  • Loading branch information
srid committed Sep 11, 2024
1 parent 43b77f6 commit b6aeeb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ jobs:

- name: Build all flake outputs
run: om ci

# Push and pin whitelisted paths to cachix
- name: Push to cachix
if: |
${{
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/prodHotPush'
}}
run: nix run .#cachix-push
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
process-compose = { };
packages.default = self'.packages.mobility-core;
devShells.default = pkgs.mkShell {
name = "shared-kernel-shell";
# cf. https://haskell.flake.page/devshell#composing-devshells
inputsFrom = [
config.haskellProjects.default.outputs.devShell
Expand Down

0 comments on commit b6aeeb3

Please sign in to comment.