Skip to content

Commit

Permalink
Fixup stack-nightly
Browse files Browse the repository at this point in the history
- Simplify CI nightly build
- Test newer persistent as a dedicated config
- Update to nightly as of today(ish)
  • Loading branch information
pbrisbin committed Aug 15, 2022
1 parent 42ebbcd commit 4c1e9a9
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 36 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ jobs:
strategy:
matrix:
stack-yaml:
- stack-nightly.yaml # ghc-9.0
- stack.yaml # ghc-9.0
- stack-lts-18.28.yaml # ghc-8.10
- stack-lts-16.31.yaml # ghc-8.8
- stack-lts-14.27.yaml # ghc-8.6
- stack-lts-12.26.yaml # ghc-8.4
- stack-persistent-2.14.yaml
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: freckle/stack-cache-action@v2
with:
stack-yaml: ${{ matrix.stack-yaml }}
Expand All @@ -36,15 +38,3 @@ jobs:
- uses: rwe/actions-hlint-run@v2
with:
fail-on: warning

nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: freckle/stack-cache-action@v2
with:
stack-yaml: stack-nightly.yaml
- uses: freckle/stack-action@v3
with:
stack-yaml: stack-nightly.yaml
stack-arguments: --resolver nightly
8 changes: 1 addition & 7 deletions stack-nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
resolver: nightly-2022-08-04

extra-deps:
- persistent-2.14.1.0
# https://github.com/typeable/generic-arbitrary/issues/12
- github: typeable/generic-arbitrary
commit: e559ca7591b00ffca49b172b77e9c4150f6c1399
resolver: nightly-2022-08-15
21 changes: 5 additions & 16 deletions stack-nightly.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,10 @@
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
size: 4911
url: https://github.com/typeable/generic-arbitrary/archive/e559ca7591b00ffca49b172b77e9c4150f6c1399.tar.gz
name: generic-arbitrary
version: 0.2.0
sha256: 0da48e4fb19f9b60699a7d3273fae791c1213c07aeba540977cbf2f9efbea571
pantry-tree:
size: 492
sha256: 935937b10d6569ae701a14146b857d45f32a7109f5d8b62e05bae8aa9bb6c4fb
original:
url: https://github.com/typeable/generic-arbitrary/archive/e559ca7591b00ffca49b172b77e9c4150f6c1399.tar.gz
packages: []
snapshots:
- completed:
size: 539378
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/3/30.yaml
sha256: 745431a4c5b78cc93d81e99b2253a1e0eacd4f94e00cf17dab7cc14e665332e3
original: nightly-2022-03-30
size: 630638
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/8/15.yaml
sha256: faa92f1bd6eb0ec0535c43ff1d1719de0968a57e60a2e954d55c0e2ec37a25aa
original: nightly-2022-08-15
5 changes: 5 additions & 0 deletions stack-persistent-2.14.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Dedicated config for pre-testing newer persistent. Remove this config once
# 2.14 is in the nightly's we're using.
resolver: nightly-2022-08-15
extra-deps:
- persistent-2.14.1.0
19 changes: 19 additions & 0 deletions stack-persistent-2.14.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
hackage: persistent-2.14.1.0@sha256:a7b47a4969eddec09c7fb3d79550bb689e81986cf46e874d06044d27b79b93b5,7060
pantry-tree:
size: 6511
sha256: 7eb0896c61e7fc13d02bd72083b6226a6ba4c5e5fb893ee92457a424a7207ae5
original:
hackage: persistent-2.14.1.0
snapshots:
- completed:
size: 630638
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/8/15.yaml
sha256: faa92f1bd6eb0ec0535c43ff1d1719de0968a57e60a2e954d55c0e2ec37a25aa
original: nightly-2022-08-15
1 change: 1 addition & 0 deletions test/README.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies. We use this interface to generate fixtures for automated testing.
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Main (module Main) where
Expand Down

0 comments on commit 4c1e9a9

Please sign in to comment.