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 67e5c67
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,28 @@ 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) }}
runs-on: ubuntu-latest
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$(echo ${{ matrix.ghc }} | tr -d '.')" # 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 All @@ -154,6 +172,7 @@ jobs:
needs:
- build-cabal
- build-flake
- build-devshell
runs-on:
- ubuntu-latest
steps:
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 67e5c67

Please sign in to comment.