Skip to content

Commit

Permalink
hconf-cli (#863)
Browse files Browse the repository at this point in the history
* hconf-cli

* hconf

* cli/conf

* cli/hconf

* hconf

* checkout

* yaml

* fix

* shell

* add npm i

* add path

* cli

* add cli

* prefix

* update

* add hconf

* hconf

* add to path

* update

* update

* hconf

* hconf

* PATH

* path

* cd

* update

* update

* version

* hconf

* hconf

* update

* hconf

* setup
  • Loading branch information
nalchevanidze committed Jun 6, 2024
1 parent cebce5c commit cc7f713
Show file tree
Hide file tree
Showing 38 changed files with 38 additions and 2,094 deletions.
11 changes: 8 additions & 3 deletions .github/actions/setup-hs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup Node
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
- name: Download HConf
shell: bash
run: |
npm i
npm run hconf
hconf setup ${{ inputs.ghc }}
- name: Setup Haskell
- name: HConf Haskell
uses: haskell/actions/[email protected]
with:
ghc-version: ${{ inputs.ghc }}
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,7 @@ 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"]
Expand All @@ -34,16 +17,6 @@ jobs:
name: GHC ${{ matrix.ghc}}
steps:
- 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
with:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
tag_name: ${{ steps.describe.outputs.version }}
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1.2
- uses: ./.github/actions/setup-hs
- name: Upload Packages
run: |
stack sdist
Expand All @@ -30,11 +30,6 @@ jobs:
HACKAGE_USERNAME: ${{ secrets.HACKAGE_USERNAME }}
HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}

- name: Node
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Describe
id: describe
run: echo "VERSION=$(hconf version)" >> $GITHUB_OUTPUT
Expand Down
4 changes: 0 additions & 4 deletions hconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ groups:
- benchmarks
- .
prefix: true
- name: hconf
packages:
- hconf
dir: ./
builds:
- ghc: 8.4.4
resolver: lts-12.26
Expand Down
21 changes: 0 additions & 21 deletions hconf/LICENSE

This file was deleted.

245 changes: 0 additions & 245 deletions hconf/README.md

This file was deleted.

Loading

0 comments on commit cc7f713

Please sign in to comment.