Prepare 0.1.0.0 (#9)

* Prepare 0.1.0.0

* Cache with cabal files
This commit is contained in:
iko 2022-12-21 13:34:55 +00:00 committed by GitHub
parent ce37cfe5de
commit 25fa4f3ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 11 deletions

View File

@ -17,7 +17,7 @@ jobs:
- name: Check library version
if: github.event_name == 'release'
run: |
if [ "$(yq eval ".version" package.yaml)" != "${{ github.event.release.tag_name }}" ]; then
if [ "$(awk -F":" '{if ($1 == "version") {gsub(/ /, "", $2); print $2}}')" != "${{ github.event.release.tag_name }}" ]; then
echo "::error file=action.yaml::Library version does not match release version."
exit 1
fi
@ -33,7 +33,7 @@ jobs:
path: |
~/.stack
.stack-work
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
restore-keys: |
${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
${{ runner.os }}-stack

View File

@ -22,11 +22,6 @@ source-repository head
type: git
location: https://github.com/ilyakooo0/deriving-openapi3
flag servant-description
description: Create instances for the 'Description' type from 'servant'
manual: False
default: True
library
exposed-modules:
Deriving.OpenApi
@ -57,8 +52,4 @@ library
, lens
, openapi3
, text
if flag(servant-description)
cpp-options: -DSERVANT_DESCRIPTION
build-depends:
servant
default-language: Haskell2010