Skip to content

Commit

Permalink
Merge pull request #270 from haskell-nix/srk/ci
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
sorki authored Nov 29, 2023
2 parents 0c692e9 + d78ce4a commit 92b83e8
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
8 changes: 0 additions & 8 deletions .github/dependabot.yml

This file was deleted.

9 changes: 8 additions & 1 deletion .github/workflows/ci.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ let haskellCi =
let defSteps = haskellCi.defaultCabalSteps

in haskellCi.generalCi
(haskellCi.withNix defSteps)
( haskellCi.withNix
( defSteps
with extraSteps.pre
=
defSteps.extraSteps.pre
# [ haskellCi.installCachixStep "hnix-store" ]
)
)
haskellCi.DhallMatrix::{
, ghc =
[ haskellCi.GHC.GHC963
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/ci.dhall.frozen
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
let haskellCi =
https://raw.githubusercontent.com/sorki/github-actions-dhall/main/haskell-ci.dhall
sha256:9e49c0d57a38ab766825b3d2de6656d998b15eec873982db97d590ef58298601
sha256:5d7058a7684fd5315467b562853bd1c4a43da691c09293d3715ee739dfa26e08

let defSteps = haskellCi.defaultCabalSteps

in haskellCi.generalCi
(haskellCi.withNix defSteps)
( haskellCi.withNix
( defSteps
with extraSteps.pre
=
defSteps.extraSteps.pre
# [ haskellCi.installCachixStep "hnix-store" ]
)
)
haskellCi.DhallMatrix::{
, ghc =
[ haskellCi.GHC.GHC963
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ jobs:
name: "GHC ${{ matrix.ghc }}, Cabal ${{ matrix.cabal }}, OS ${{ matrix.os }}"
"runs-on": "${{ matrix.os }}"
steps:
- uses: "cachix/install-nix-action@v23"
- uses: "cachix/install-nix-action@v24"
with:
nix_path: "nixpkgs=channel:nixos-unstable"
- uses: "cachix/cachix-action@v13"
with:
name: "hnix-store"
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- uses: "actions/checkout@v4"
with:
submodules: recursive
Expand Down
3 changes: 3 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
test: true
benchmarks: true

packages:
./hnix-store-core/hnix-store-core.cabal
./hnix-store-db/hnix-store-db.cabal
Expand Down
2 changes: 0 additions & 2 deletions cabal.project.local.ci
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
tests: True

package hnix-store-core
ghc-options: -Wunused-packages -Wall -Werror

Expand Down

0 comments on commit 92b83e8

Please sign in to comment.