Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Jul 30, 2023
1 parent 7f18882 commit 83d1fa4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- master
tags:
- '*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
Expand All @@ -24,17 +26,30 @@ jobs:
- name: Clone project
uses: actions/checkout@v3

- name: Cache dependencies
- name: Cache dependencies on Unix-like OS
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
uses: actions/cache@v3
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.resolver }}-
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}

- name: Cache dependencies on Windows
if: startsWith(runner.os, 'Windows')
uses: actions/cache@v3
with:
path: |
~\AppData\Roaming\stack
~\AppData\Local\Programs\stack
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}

- name: Build and run tests
shell: bash
run: |
set -ex
curl -sSL https://get.haskellstack.org/ | sh -s - -f
stack test --fast --no-terminal --resolver=${{ matrix.resolver }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
crypton-conduit
==================

[![BSD](http://b.repl.ca/v1/license-BSD-blue.png)](http://en.wikipedia.org/wiki/BSD_licenses)
[![Haskell](http://b.repl.ca/v1/language-haskell-lightgrey.png)](http://haskell.org)
![crypton-conduit](https://user-images.githubusercontent.com/737477/53658993-54575200-3c80-11e9-9125-fbcf9e54660f.png)
[![Hackage](https://img.shields.io/hackage/v/crypton-conduit.svg)](https://hackage.haskell.org/package/crypton-conduit)
[![Stackage
Nightly](http://stackage.org/package/crypton-conduit/badge/nightly)](http://stackage.org/nightly/package/crypton-conduit)
[![Stackage
LTS](http://stackage.org/package/crypton-conduit/badge/lts)](http://stackage.org/lts/package/crypton-conduit)
[![Tests](https://github.com/psibi/crypton-conduit/actions/workflows/tests.yml/badge.svg)](https://github.com/psibi/crypton-conduit/actions/workflows/tests.yml)

This is a fork of cryponite-conduit. For more details [see here](https://github.com/yesodweb/wai/pull/931).

Expand Down
2 changes: 1 addition & 1 deletion crypton-conduit.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: crypton-conduit
version: 0.2.2
version: 0.2.3
Synopsis: crypton conduit
Description:
Conduit bridge for crypton
Expand Down

0 comments on commit 83d1fa4

Please sign in to comment.