Merge pull request #270 from haskell-nix/srk/ci

CI updates
This commit is contained in:
Richard Marko 2023-11-29 21:16:37 +01:00 committed by GitHub
commit 92b83e8258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 14 deletions

View File

@ -1,8 +0,0 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,6 @@
test: true
benchmarks: true
packages:
./hnix-store-core/hnix-store-core.cabal
./hnix-store-db/hnix-store-db.cabal

View File

@ -1,5 +1,3 @@
tests: True
package hnix-store-core
ghc-options: -Wunused-packages -Wall -Werror