Skip to content

Commit

Permalink
chore: don't use channels for testing (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo authored Jul 21, 2023
1 parent 3b6f799 commit ec939ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
token: ${{ secrets.ATTIC_TOKEN }}

- name: Build Nix Package
run: nix build -f test.nix -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz --show-trace
run: nix build --impure --show-trace -L .#test
14 changes: 12 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
description = "";
description = "Github Action for caching Nix derivations with attic";

inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
Expand All @@ -26,6 +26,16 @@
};
});

formatter = forEachSystem (p: p.nixpkgs-fmt);
formatter = forEachSystem (p: p.alejandra);

packages = forEachSystem (p: let
time = toString builtins.currentTime;
test = p.runCommand "test-${time}" {} ''
echo ${time} > $out
'';
in {
inherit test;
default = test;
});
};
}
7 changes: 0 additions & 7 deletions test.nix

This file was deleted.

0 comments on commit ec939ca

Please sign in to comment.