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 43a7bb5 commit cac79f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
trusted-substituters = https://gepetto.cachix.org
trusted-public-keys = gepetto.cachix.org-1:toswMl31VewC0jGkN6+gOelO2Yom0SOHzPwJMY2XiDY=
- 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 }}
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cmake,
hpp-corbaserver,
pkg-config,
python3Packages
python3Packages,
}:

python3Packages.buildPythonPackage {
Expand Down
7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@
...
}:
{
packages.default = pkgs.callPackage ./. {
hpp-corbaserver = inputs.hpp-corbaserver.packages.${system}.default;
packages = {
inherit (pkgs) cachix;
default = pkgs.callPackage ./. {
hpp-corbaserver = inputs.hpp-corbaserver.packages.${system}.default;
};
};
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; };
};
Expand Down

0 comments on commit cac79f7

Please sign in to comment.