Update to v3 of cachix-action ❄️ (#51)

This commit is contained in:
Flavio Corpa 2019-12-23 09:19:20 +01:00 committed by GitHub
parent a0fd84f7c4
commit a89a7ae80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 42 additions and 28 deletions

12
.github/workflows/haskell.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Haskell CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: cachix/install-nix-action@v6
- uses: cachix/cachix-action@v3
with:
name: 47deg
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'

View File

@ -1,27 +0,0 @@
# Choose a build environment
dist: bionic
# Do not choose a language; we provide our own build tools.
language: generic
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
# Ensure necessary system libraries are present
addons:
apt:
packages:
- libgmp-dev
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
install:
# Build dependencies
- stack --no-terminal --install-ghc test --only-dependencies
- stack --no-terminal --install-ghc test --only-dependencies --stack-yaml stack-nightly.yaml

View File

@ -1,6 +1,6 @@
# Mu for Haskell
[![Build Status](https://travis-ci.com/higherkindness/mu-haskell.svg?branch=master)](https://travis-ci.com/higherkindness/mu-haskell)
[![Actions Status](https://github.com/higherkindness/mu-haskell/workflows/Haskell%20CI/badge.svg)](https://github.com/higherkindness/mu-haskell/actions)
This repo defines a set of libraries to write microservices in a format- and protocol-independent way. It shares the same goals as [Mu for Scala](http://higherkindness.io/mu/), but using idiomatic Haskell and more type-level techniques.

24
default.nix Normal file
View File

@ -0,0 +1,24 @@
{ nixpkgs ? (fetchTarball https://github.com/NixOS/nixpkgs/archive/b1844ef5816b0af8bc2f6215054279ea35e29b77.tar.gz)
, pkgs ? import nixpkgs (import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/83966f3.tar.gz))
}:
let
hnPkgs = pkgs.haskell-nix.stackProject {
src = ./.;
modules = [];
};
in {
compendium-client = hnPkgs.compendium-client.components.library;
mu-avro = hnPkgs.mu-avro.components.all;
mu-example-health-check = hnPkgs.mu-example-health-check.components.all;
mu-example-route-guide = hnPkgs.mu-example-route-guide.components.all;
mu-example-seed = hnPkgs.mu-example-seed.components.all;
mu-example-todolist = hnPkgs.mu-example-todolist.components.all;
mu-example-with-persistent = hnPkgs.mu-example-with-persistent.components.all;
mu-grpc-client = hnPkgs.mu-grpc-client.components.library;
mu-grpc-server = hnPkgs.mu-grpc-server.components.all;
mu-persistent = hnPkgs.mu-persistent.components.library;
mu-protobuf = hnPkgs.mu-protobuf.components.all;
mu-rpc = hnPkgs.mu-rpc.components.library;
mu-schema = hnPkgs.mu-schema.components.library;
}

View File

@ -15,6 +15,7 @@ maintainer: alejandro.serrano@47deg.com
copyright: Copyright © 2019-2020 47 Degrees. <http://47deg.com>
category: Network
build-type: Simple
data-files: healthcheck.proto
executable health-server
main-is: Server.hs

View File

@ -15,6 +15,7 @@ maintainer: alejandro.serrano@47deg.com
copyright: Copyright © 2019-2020 47 Degrees. <http://47deg.com>
category: Network
build-type: Simple
data-files: routeguide.proto
executable route-guide-server
main-is: Server.hs

View File

@ -12,6 +12,7 @@ category: Network
build-type: Simple
cabal-version: >=1.10
extra-source-files: README.md
data-files: seed.proto
executable seed-server
hs-source-dirs: src

View File

@ -15,6 +15,7 @@ maintainer: flavio.corpa@47deg.com
copyright: Copyright © 2019-2020 47 Degrees. <http://47deg.com>
category: Network
build-type: Simple
data-files: todolist.proto
executable todolist-server
main-is: Server.hs

View File

@ -10,6 +10,7 @@ category: Network
build-type: Simple
cabal-version: >=1.10
extra-source-files: README.md
data-files: with-persistent.proto
executable persistent-server
hs-source-dirs: src