Skip to content

Commit

Permalink
feat: added nix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
xgroleau committed Feb 29, 2024
1 parent 2ac2a4c commit 3b7f44b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4

- name: Setup cache
uses: DeterminateSystems/[email protected]

- name: Run ci checks
run: |
nix flake check
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4

- name: Setup cache
uses: DeterminateSystems/[email protected]

- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
Expand Down
15 changes: 15 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,21 @@
type = "app";
program = "${app}/bin/${app.name}";
};

deploy = let
app = pkgs.writeShellApplication {
name = "deploy";
runtimeInputs = with pkgs;
[ deploy-rs.packages.${system}.default ];
text = ''
deploy .# --remote-build "$@"
'';
};
in {
type = "app";
program = "${app}/bin/${app.name}";
};

};

checks = {
Expand Down

0 comments on commit 3b7f44b

Please sign in to comment.