Skip to content

Commit

Permalink
build: remove GHC 9.10 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed May 20, 2024
1 parent 2b6fbc3 commit f4690ae
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13 deletions.
41 changes: 30 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: [master]
jobs:
checks:
name: "Run Nix checks"
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -25,10 +26,8 @@ jobs:
- name: Run Nix checks
run: nix flake check

- name: Build with Nix (runs tests)
run: nix build

default-ghc:
name: "Build & test with Nix (default unstable GHC)"
needs: [checks]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -46,8 +45,8 @@ jobs:
- name: Build default package with Nix
run: nix build


ghc-94:
name: "Build & test with Nix (GHC 9.4)"
needs: [checks]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -65,8 +64,8 @@ jobs:
- name: Build package with Nix (GHC 9.4)
run: nix build ".#richenv-ghc94"


ghc-98:
ghc-96:
name: "Build & test with Nix (GHC 9.6)"
needs: [checks]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -81,10 +80,11 @@ jobs:
- name: Enable cache for Nix
uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Build package with Nix (GHC 9.8)
run: nix build ".#richenv-ghc98"
- name: Build package with Nix (GHC 9.6)
run: nix build ".#richenv-ghc96"

ghc-910:
ghc-98:
name: "Build & test with Nix (GHC 9.8)"
needs: [checks]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -99,5 +99,24 @@ jobs:
- name: Enable cache for Nix
uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Build package with Nix (GHC 9.10)
run: nix build ".#richenv-ghc910"
- name: Build package with Nix (GHC 9.8)
run: nix build ".#richenv-ghc98"

# ghc-910:
# name: "Build & test with Nix (GHC 9.10)"
# needs: [checks]
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest]
# steps:
# - uses: actions/checkout@v4

# - name: Install Nix
# uses: cachix/install-nix-action@v27

# - name: Enable cache for Nix
# uses: DeterminateSystems/magic-nix-cache-action@v2

# - name: Build package with Nix (GHC 9.10)
# run: nix build ".#richenv-ghc910"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for richenv

## 0.1.0.2 -- 2024-05-20

* test: switch dependency for YAML parsing from `yaml` to `HsYAML`.

## 0.1.0.1 -- 2023-09-25

* Fix changelog.
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
default = pkgs.haskellPackages.callPackage ./default.nix {};

richenv-ghc94 = pkgs.haskell.packages.ghc94.callPackage ./default.nix {};
# richenv-ghc96 = pkgs.haskell.packages.ghc96.callPackage ./default.nix {};
richenv-ghc96 = pkgs.haskell.packages.ghc96.callPackage ./default.nix {};
richenv-ghc98 = pkgs.haskell.packages.ghc98.callPackage ./default.nix {};
richenv-ghc910 = pkgs.haskell.packages.ghc910.callPackage ./default.nix {};
# richenv-ghc910 = pkgs.haskell.packages.ghc910.callPackage ./default.nix {};
};
};
};
Expand Down

0 comments on commit f4690ae

Please sign in to comment.