Skip to content

Commit

Permalink
nix ci: cachix push
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Jun 30, 2024
1 parent 5c6c390 commit afd2229
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build --accept-flake-config
- run: nix --accept-flake-config build -L
- run: nix --accept-flake-config run .#cachix push gepetto $(readlink result)
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
perSystem =
{ self', pkgs, ... }:
{
packages.default = pkgs.callPackage ./. { };
packages = {
inherit (pkgs) cachix;
default = pkgs.callPackage ./. { };
};
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; };
};
};
Expand Down

0 comments on commit afd2229

Please sign in to comment.