Skip to content

Commit

Permalink
Merge pull request #664 from hexresearch/ci-8.6
Browse files Browse the repository at this point in the history
Add GHC8.6 to CI
  • Loading branch information
Shimuuar authored Nov 27, 2020
2 parents decede1 + 4244c5e commit 1fa5ea9
Show file tree
Hide file tree
Showing 93 changed files with 39 additions and 24,265 deletions.
19 changes: 19 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ steps:
- cd nix
- ./build-ci.sh --argstr ghc ghc883 --arg useSodium true --arg isBench true

- name: build-hschain-ghc865
image: nixos/nix:2.3.4
privileged: true
network_mode: host
environment:
DRONE_GITHUB_PULL_KEY:
from_secret: drone_github_pull_key
NIX_CACHE_KEY:
from_secret: nix_cache_key
NIX_CACHE_SIGNING_KEY:
from_secret: nix_cache_signing_key
commands:
- apk add --no-cache git bash openssh-client
- source ./nix/setup_ssh_ci.sh
- "echo -n \"$${NIX_CACHE_SIGNING_KEY}\" > \"$${HOME}/nix-cache-key.sec\""
- "chmod 400 \"$${HOME}/nix-cache-key.sec\""
- cd nix
- ./build-ci.sh --argstr ghc ghc865 --arg useSodium true --arg isBench true

- name: build-hschain-cryptonite
image: nixos/nix:2.3.4
privileged: true
Expand Down
1 change: 0 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ packages:
hschain-examples
hschain-examples-types
serialise-cddl
proof-of-work/full-mining
proof-of-work/lightweight-check

-- Jailbreak bytestring-arbitrary
Expand Down
4 changes: 4 additions & 0 deletions hschain-PoW/HSChain/PoW/Tests.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
-- |
-- Generic invariants for writing tests.
Expand All @@ -15,6 +16,9 @@ import Control.Monad
import Control.Monad.Catch
import Control.Monad.IO.Class
import Control.Monad.Reader
#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail
#endif

import HSChain.Control.Class
import HSChain.Logger
Expand Down
4 changes: 4 additions & 0 deletions hschain-PoW/test/TM/Coin.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
-- |
Expand All @@ -6,6 +7,9 @@ module TM.Coin (tests) where
import Control.Lens
import Control.Monad.IO.Class
import Control.Monad.State.Strict
#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail (MonadFail)
#endif
import Data.Coerce
import Data.List (sort)
import Test.Tasty
Expand Down
3 changes: 0 additions & 3 deletions hschain-PoW/test/TM/Util/Mockchain.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ module TM.Util.Mockchain where
import Codec.Serialise
import Control.Applicative
import Control.Monad.Catch
#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail (MonadFail)
#endif
import Data.Bits
import Data.List (unfoldr)
import Data.Word
Expand Down
5 changes: 5 additions & 0 deletions hschain-examples/HSChain/Mock/Types.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingVia #-}
Expand Down Expand Up @@ -25,11 +26,15 @@ module HSChain.Mock.Types (
, HSChainCfg
-- * Helpers
, makeGenesis
, MonadFail
) where

import Control.Exception (Exception)
import Control.Monad
import Control.Monad.Catch (MonadCatch(..),MonadThrow(..))
#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail (MonadFail)
#endif
import Data.Default.Class
import Data.Typeable
import Data.Word
Expand Down
6 changes: 3 additions & 3 deletions hschain-examples/test/TM/Util/MockChain.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ module TM.Util.MockChain where

import Control.Monad.Catch
import Control.Monad.Reader
#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail (MonadFail)
#endif
import Data.List (sortOn)
import qualified Data.Map.Strict as Map
import qualified Data.List.NonEmpty as NE
#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail (MonadFail)
#endif

import HSChain.Control.Class
import HSChain.Crypto
Expand Down
2 changes: 1 addition & 1 deletion nix/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
};
# Compiler specific overrides
ghc865 = {
servant-server = { check = false; };
};
ghc883 = {
katip = { jailbreak = true; };
};
ghcjs = {
SHA = { check = false; };
Expand Down
27 changes: 3 additions & 24 deletions nix/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ let
hschain-db = callInternal hsPkgs "hschain" ../hschain-db {} "";
hschain-net = callInternal hsPkgs "hschain" ../hschain-net {} "";
hschain-config = callInternal hsPkgs "hschain" ../hschain-config {} "";
hschain-pow-func = callInternal hsPkgs "hschain" ../proof-of-work/full-mining {} "";
hschain-pow-check = callInternal hsPkgs "hschain" ../proof-of-work/lightweight-check {} "";
hschain-PoW = callInternal hsPkgs "hschain" ../hschain-PoW {} "";
hschain = callInternal hsPkgs "hschain" ../hschain {} "";
hschain-examples = callInternal hsPkgs "hschain" ../hschain-examples {} "";
Expand All @@ -76,28 +74,9 @@ let
'';
#
release = let
hschainPkgAll = p: with p; [
serialise-cddl
bls-signatures
hschain-crypto
hschain-crypto-bls
hschain-types
hschain-merkle
hschain-mempool
hschain-logger
hschain-config
hschain-quickcheck
hschain-control
hschain-net
hschain-db
hschain-pow-func
hschain-pow-check
hschain-PoW
hschain
hschain-examples
hschain-examples-types
];
hschainPkgJs = p: with p; [
# All packages mentioned in hschainPackages
hschainPkgAll = p: map (nm: p."${nm}") (builtins.attrNames (hschainPackages {}));
hschainPkgJs = p: with p; [
hschain-crypto
hschain-control
hschain-types
Expand Down
18 changes: 0 additions & 18 deletions proof-of-work/SAT-experiments/proto/Makefile

This file was deleted.

34 changes: 0 additions & 34 deletions proof-of-work/SAT-experiments/proto/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions proof-of-work/SAT-experiments/proto/TODO.md

This file was deleted.

4 changes: 0 additions & 4 deletions proof-of-work/SAT-experiments/proto/aa.c

This file was deleted.

76 changes: 0 additions & 76 deletions proof-of-work/SAT-experiments/proto/aa.txt

This file was deleted.

19 changes: 0 additions & 19 deletions proof-of-work/SAT-experiments/proto/ajust_rate.c

This file was deleted.

38 changes: 0 additions & 38 deletions proof-of-work/SAT-experiments/proto/csls.c

This file was deleted.

16 changes: 0 additions & 16 deletions proof-of-work/SAT-experiments/proto/csls.h

This file was deleted.

Loading

0 comments on commit 1fa5ea9

Please sign in to comment.