mirror of
https://github.com/ilyakooo0/deriving-openapi3.git
synced 2024-10-05 14:07:09 +03:00
parent
ce37cfe5de
commit
25fa4f3ddc
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user