Started CI

This commit is contained in:
iko 2022-01-09 18:25:06 +03:00
parent afcdc4c7bc
commit 94d936f46e
Signed by untrusted user: iko
GPG Key ID: 82C257048D1026F2
2 changed files with 46 additions and 1 deletions

45
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Github Action Docker Image
on:
push:
branches: [master]
pull_request:
branches: [master]
release:
types: [prereleased]
jobs:
check_versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check library version
if: github.event_name == 'release'
run: |
if [ "$(yq eval ".version" package.yaml)" != "${{ github.event.release.tag_name }}" ]; then
echo "::error file=action.yaml::Library version does not match release version."
exit 1
fi
Linux:
needs: check_versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v1
with:
path: |
~/.stack
.stack-work
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}
restore-keys: |
${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
${{ runner.os }}-stack
- name: Build
shell: bash
run: |
stack build

View File

@ -1,5 +1,5 @@
name: deriving-openapi3
version: 0.1.0
version: 0.1.0.0
synopsis: DerivingVia for OpenAPI 3
# description:
maintainer: Ilya Kostyuchenko <ilyakooo0@gmail.com>