File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 28
28
steps :
29
29
- uses : actions/checkout@v4
30
30
- uses : cachix/install-nix-action@v27
31
+ with :
32
+ extra_nix_config :
33
+ accept-flake-config = true
31
34
# https://input-output-hk.github.io/haskell.nix/tutorials/getting-started.html
32
35
# with:
33
36
# extra_nix_config: |
49
52
# run: |
50
53
# ./bin/${{ matrix.devShell }} -c ghc --version
51
54
# ./bin/${{ matrix.devShell }} -c cabal --version
52
- - run : nix build --accept-flake-config
55
+ - run : nix build
53
56
timeout-minutes : 10
57
+ - run : nix run .#test
58
+ timeout-minutes : 5
54
59
# timeout-minutes: 5
55
60
# - name: Update package index
56
61
# run: ./bin/${{ matrix.devShell }} -c cabal update
Original file line number Diff line number Diff line change 32
32
flake = pkgs . hapistrano . flake { } ;
33
33
in
34
34
flake // {
35
- packages . default = flake . packages . "hapistrano:exe:hap" ;
35
+ apps . test = {
36
+ type = "app" ;
37
+ program = "${ flake . packages . "hapistrano:test:test" } /bin/test" ;
38
+ } ;
39
+ packages . default = flake . packages . " hapistrano:exe:hap " ;
36
40
} ) ;
37
41
}
42
+
43
+
You can’t perform that action at this time.
0 commit comments