Skip to content

Commit

Permalink
Build nix develop for all GHCs
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bärenz authored and turion committed Nov 16, 2024
1 parent 2a4f7be commit e6e4d27
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,32 @@ jobs:
run: nix flake check
- name: Build all packages
run: nix build --accept-flake-config

build-devshell:
name: Nix Flake Develop
needs:
- generateMatrix
- build-flake
strategy:
matrix: ${{ fromJSON(needs.generateMatrix.outputs.matrix) }}
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: cachix/cachix-action@v15
with:
name: rhine
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run tests
run: |
nix develop --accept-flake-config -c cabal update
nix develop --accept-flake-config -c cabal test all
ghc="ghc${${{ matrix.ghc }}%.*}" # Removes the dot from the ghc version and prepends "ghc"
nix develop .#${ghc} --accept-flake-config -c cabal update
nix develop .#${ghc} --accept-flake-config -c cabal test all
cabal-check:
name: Check and format all cabal files
Expand Down
10 changes: 5 additions & 5 deletions rhine/rhine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ data-files:
test/assets/*.txt

tested-with:
ghc ==9.2.8
ghc ==9.4.7
ghc ==9.6.4
ghc ==9.8.2
ghc ==9.10.1
ghc ==9.2
ghc ==9.4
ghc ==9.6
ghc ==9.8
ghc ==9.10

source-repository head
type: git
Expand Down

0 comments on commit e6e4d27

Please sign in to comment.