CI changes

This commit is contained in:
Utku Demir 2023-01-08 09:25:45 +13:00
parent 97a4df0bb2
commit 177e3342cd
2 changed files with 24 additions and 2 deletions

View File

@ -3,7 +3,7 @@ on:
pull_request:
push:
jobs:
build:
build-nix:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
@ -20,4 +20,21 @@ jobs:
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix build
- run: nix develop -c echo
- run: nix develop -c ./format.sh check
- run: nix develop -c ./format.sh check
build-cabal:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v12
with:
name: utdemir
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix develop '.#cabal' -c cabal update
- run: nix develop '.#cabal' -c cabal run -- nix-tree --help

View File

@ -42,6 +42,11 @@
];
withHoogle = false;
};
devShells.cabal = pkgs.mkShell {
buildInputs = [
pkgs.ghc
];
};
}
);
}