Skip to content

Commit

Permalink
Testing shell created by hix
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Jun 22, 2024
1 parent ad49263 commit 527beea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ concurrency:

jobs:
haskell:
strategy:
fail-fast: true
matrix:
os:
# strategy:
# fail-fast: true
# matrix:
# os:
# - macos-13 # x64
- ubuntu-latest
# - ubuntu-latest
# devShell:
# - ghc810
# - ghc90
runs-on: ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
Expand All @@ -48,8 +49,8 @@ jobs:
# run: |
# ./bin/${{ matrix.devShell }} -c ghc --version
# ./bin/${{ matrix.devShell }} -c cabal --version
- run: nix develop --accept-flake-config -c ghc --version
timeout-minutes: 2
- run: nix build --accept-flake-config
timeout-minutes: 10
# timeout-minutes: 5
# - name: Update package index
# run: ./bin/${{ matrix.devShell }} -c cabal update
Expand Down
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
};

outputs = inputs@{ self, flake-utils, haskellNix, nixpkgs }:
# https://input-output-hk.github.io/haskell.nix/tutorials/getting-started-flakes.html
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [
Expand All @@ -31,5 +32,7 @@
};
flake = pkgs.hapistrano.flake { };
in
flake);
flake // {
packages.default = flake.packages."hapistrano:exe:hap";
});
}

0 comments on commit 527beea

Please sign in to comment.