Skip to content

Commit

Permalink
CI: add more GHC versions
Browse files Browse the repository at this point in the history
  • Loading branch information
runeksvendsen committed Dec 28, 2024
1 parent 5093378 commit 7bf7cdc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cabal-in-nix-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04, macos-13]
ghc: [ghc88, ghc96, ghc810, ghc884, ghc90]
ghc: [ghc7103, ghc802, ghc822, ghc844, ghc865Binary, ghc88, ghc96, ghc810, ghc884, ghc90]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down
10 changes: 9 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,23 @@ let
sha256 = "10wn0l08j9lgqcw8177nh2ljrnxdrpri7bp0g7nvrsn9rkawvlbf";
}) {};

pkgs1809 =
import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/925ff360bc33876fdb6ff967470e34ff375ce65e.tar.gz";
sha256 = "1qbmp6x01ika4kdc7bhqawasnpmhyl857ldz25nmq9fsmqm1vl2s";
}) {};

pkgs2405 =
import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/31ac92f9628682b294026f0860e14587a09ffb4b.tar.gz";
sha256 = "0qbyywfgjljfb4izdngxvbyvbrkilmpsmmx2a9spbwir2bcmbi14";
}) {};

ghc = pkgs.haskell.compiler.${ghcVersion} or pkgs1809.haskell.compiler.${ghcVersion};
in
pkgs.mkShell {
nativeBuildInputs = [
pkgs.haskell.compiler.${ghcVersion}
ghc
pkgs.cabal-install
pkgs.git
pkgs2405.gcc9 # later versions fail with issue https://github.com/jberthold/packman/issues/17
Expand Down

0 comments on commit 7bf7cdc

Please sign in to comment.