Skip to content

Commit

Permalink
Haskell stack config (#859)
Browse files Browse the repository at this point in the history
* chunk

* update

* update

* update

* toPRNumbers

* gen

* update

* hconf

* update

* scripts

* update open

* update

* cli

* package

* readme

* packages

* check cabals

* monitor cabal

* cabal

* cabal

* process

* process

* HConf

* cabal

* process

* update

* update

* update

* update

* update

* error

* update

* cabal

* update cabal too

* update nightly

* hconf

* build

* update

* parse output

* regroup

* groupTopics

* update

* update

* would test

* wanrings

* update parse warning

* update

* update

* update

* update

* update

* exec

* update

* update

* update

* packages

* fix bounds

* update

* process

* cabal

* update

* criterion

* update

* bounds

* update

* update

* deps

* update wai

* update

* config

* yesod

* hconfig

* hconf

* update

* update

* update

* sorted

* update

* update

* update

* update versions

* Log

* upper bounds

* upper bounds

* hackage

* update versions

* update

* update

* update split on

* update

* update

* update

* update

* mn max

* restrictions

* update

* min max

* versions

* orEquals

* Version

* update

* update bounds

* setup

* update

* upper bounds

* update deps

* up

* hconf

* hconf

* checkVersion

* check hconf

* config

* pkgName

* update

* update

* name

* pkgPath

* System.FilePath.Posix

* normalize

* dir

* version

* getBuilds

* updateBounds

* update Bounds

* update

* update

* update deps

* update

* deps

* Parse

* parse

* Pasre

* parse

* parseBound

* update

* parse

* parseRestriction

* update

* bounds

* parseText

* Dependencies

* update

* bounds

* bounds

* update

* update drop patch

* toString

* versionBounds

* version

* Name

* cabal

* update

* version

* update

* pkg group

* Config

* utils

* update

* update

* next

* bounds

* update

* stack

* HConf.Core.Env

* versions

* update hconf

* Utils

* update

* hackage

* update

* update

* builds

* :

* update config

* ghc

* hconf

* update

* bounds

* class

* check

* updateDependency

* updates

* extraDeps

* extraDeps

* Library

* update

* packages

* update

* configT

* update

* update

* chalk

* run

* run

* update

* task

* config

* update

* config

* withCOnfig

* update

* field

* type

* options

* yaml

* update

* version vs version number

* Version Tag

* version

* fetchVersions

* Latest

* stack

* task

* cabal

* rewite packages

* Tag

* hconf

* ghc

* update hconf

* github

* getExtra

* build

* fastSum

* extras

* format

* 9.0.2

* setup latest

* exclude

* fastsum

* fail-fast: false

* fix decode

* fix decode

* config

* stack most stable build

* fix aeson

* update libraries

* update Library

* packages

* update dependencies

* Dependencies

* monadIO

* core

* remove 8.2.2

* no-bench

* tag

* cli atrifact

* hconf

* fix chmod

* no double setup

* version
  • Loading branch information
nalchevanidze authored Jun 5, 2024
1 parent 00cd26d commit cebce5c
Show file tree
Hide file tree
Showing 109 changed files with 3,345 additions and 1,611 deletions.
6 changes: 0 additions & 6 deletions .github/actions/setup-hs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ runs:
- name: Setup Node
uses: actions/setup-node@v3

- name: generate stack config
run: |
npm i
npm run setup ${{ inputs.ghc }}
shell: bash

- name: Setup Haskell
uses: haskell/actions/[email protected]
with:
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/draft-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,9 @@ jobs:
uses: ./.github/actions/setup-hs

- name: Draft Release
id: draft
run: npm run release -- draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate Cabal Files
run: |
stack build --test --dry-run
stack sdist
- name: Open Release Pull Request
run: |
git config --global user.name "GitHub"
git config --global user.email "<[email protected]>"
npm run release -- open ${{ steps.draft.outputs.version }} -b "${{ steps.draft.outputs.body }}"
npm run release -- open
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 31 additions & 6 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,41 @@ on:
- main

jobs:
hconf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-hs
- name: Build
run: |
stack build hconf
mkdir cli
cp $(stack exec which hconf) ./cli/hconf
- uses: actions/upload-artifact@v4
with:
name: hconf-cli
path: ./cli

build:
needs: hconf
strategy:
matrix:
ghc: ["8.4.4", "8.6.5", "8.8.3", "8.10.7", "9.0.2", "latest"]
os: [ubuntu-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
name: GHC ${{ matrix.ghc}} (${{ matrix.os }})
fail-fast: false
runs-on: ubuntu-latest
name: GHC ${{ matrix.ghc}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: hconf-cli
path: ./cli

- name: Setup file
run: |
chmod +x ./cli/hconf
./cli/hconf setup ${{ matrix.ghc }}
- name: Setup
uses: ./.github/actions/setup-hs
Expand All @@ -31,7 +56,7 @@ jobs:
run: stack build --fast

- name: Build Bench and Haddock
run: stack build --fast --bench --no-run-benchmarks --haddock --no-haddock-deps
run: stack build --fast --no-run-benchmarks --haddock --no-haddock-deps

- name: Test
run: stack test --fast
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ jobs:

- name: Describe
id: describe
run: |
npm i
npm run release -- describe
run: echo "VERSION=$(hconf version)" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -49,8 +47,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.describe.outputs.version }}
release_name: ${{ steps.describe.outputs.version }}
tag_name: ${{ steps.describe.outputs.VERSION }}
release_name: ${{ steps.describe.outputs.VERSION }}
body: ${{ github.event.pull_request.body }}

upload_artifact:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ node_modules/
.cspellcache
.env
.vscode/*.log
__ormolu__
__ormolu__
.envrc
165 changes: 0 additions & 165 deletions config/stack.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ words:
- hlint
- hpack
- hsep
- hconf
- hunit
- ifromJSON
- inlineable
Expand Down Expand Up @@ -88,3 +89,4 @@ words:
- vsep
- websockets
- whnf
- yesod
21 changes: 21 additions & 0 deletions examples/client/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Daviti Nalchevanidze

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 8 additions & 7 deletions examples/client/morpheus-graphql-examples-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack

name: morpheus-graphql-examples-client
version: 0.1.0
version: 0.27.3
synopsis: examples
description: examples of GraphQL APIs
category: web, graphql
Expand All @@ -15,6 +15,7 @@ author: Daviti Nalchevanidze
maintainer: Daviti Nalchevanidze
copyright: (c) 2019 Daviti Nalchevanidze
license: MIT
license-file: LICENSE
build-type: Simple
data-files:
assets/mythology.gql
Expand All @@ -38,10 +39,10 @@ executable morpheus-client-example
src
ghc-options: -Wall
build-depends:
base >=4.7 && <5
, bytestring >=0.10.4
, file-embed
, morpheus-graphql-client
, req >=2.1.0
, text >=1.2.3.0
base >=4.7.0 && <5.0.0
, bytestring >=0.10.4 && <0.15.0
, file-embed >=0.0.10 && <1.0.0
, morpheus-graphql-client >=0.27.0 && <0.28.0
, req >=3.0.0 && <4.0.0
, text >=1.2.3 && <3.0.0
default-language: Haskell2010
20 changes: 10 additions & 10 deletions examples/client/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ category: web, graphql
synopsis: examples
copyright: (c) 2019 Daviti Nalchevanidze
description: examples of GraphQL APIs
dependencies:
- base >= 4.7.0 && < 5.0.0
- bytestring >= 0.10.4 && < 0.15.0
- file-embed >= 0.0.10 && < 1.0.0
- morpheus-graphql-client
- req >= 3.0.0 && < 4.0.0
- text >= 1.2.3 && < 3.0.0
data-files:
- assets/**/*.gql
- assets/**/*.json
- assets/**/*.gql
- assets/**/*.json
dependencies:
- base >= 4.7.0 && < 5.0.0
- bytestring >= 0.10.4 && < 0.15.0
- file-embed >= 0.0.10 && < 1.0.0
- morpheus-graphql-client >= 0.27.0 && < 0.28.0
- req >= 3.0.0 && < 4.0.0
- text >= 1.2.3 && < 3.0.0
executables:
morpheus-client-example:
main: Main.hs
source-dirs: src
ghc-options: '-Wall'
ghc-options: -Wall
Loading

0 comments on commit cebce5c

Please sign in to comment.