Skip to content

Commit cc7f713

Browse files
hconf-cli (#863)
* 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
1 parent cebce5c commit cc7f713

38 files changed

+38
-2094
lines changed

.github/actions/setup-hs/action.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- name: Setup Node
12-
uses: actions/setup-node@v3
11+
- uses: actions/setup-node@v3
12+
- name: Download HConf
13+
shell: bash
14+
run: |
15+
npm i
16+
npm run hconf
17+
hconf setup ${{ inputs.ghc }}
1318
14-
- name: Setup Haskell
19+
- name: HConf Haskell
1520
uses: haskell/actions/[email protected]
1621
with:
1722
ghc-version: ${{ inputs.ghc }}

.github/workflows/haskell-ci.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,7 @@ on:
88
- main
99

1010
jobs:
11-
hconf:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: ./.github/actions/setup-hs
16-
- name: Build
17-
run: |
18-
stack build hconf
19-
mkdir cli
20-
cp $(stack exec which hconf) ./cli/hconf
21-
22-
- uses: actions/upload-artifact@v4
23-
with:
24-
name: hconf-cli
25-
path: ./cli
26-
2711
build:
28-
needs: hconf
2912
strategy:
3013
matrix:
3114
ghc: ["8.4.4", "8.6.5", "8.8.3", "8.10.7", "9.0.2", "latest"]
@@ -34,16 +17,6 @@ jobs:
3417
name: GHC ${{ matrix.ghc}}
3518
steps:
3619
- uses: actions/checkout@v4
37-
- uses: actions/download-artifact@v4
38-
with:
39-
name: hconf-cli
40-
path: ./cli
41-
42-
- name: Setup file
43-
run: |
44-
chmod +x ./cli/hconf
45-
./cli/hconf setup ${{ matrix.ghc }}
46-
4720
- name: Setup
4821
uses: ./.github/actions/setup-hs
4922
with:

.github/workflows/publish-release.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
tag_name: ${{ steps.describe.outputs.version }}
1414
steps:
1515
- uses: actions/checkout@v2
16-
- uses: haskell/actions/setup@v1.2
16+
- uses: ./.github/actions/setup-hs
1717
- name: Upload Packages
1818
run: |
1919
stack sdist
@@ -30,11 +30,6 @@ jobs:
3030
HACKAGE_USERNAME: ${{ secrets.HACKAGE_USERNAME }}
3131
HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}
3232

33-
- name: Node
34-
uses: actions/setup-node@v1
35-
with:
36-
node-version: 14.x
37-
3833
- name: Describe
3934
id: describe
4035
run: echo "VERSION=$(hconf version)" >> $GITHUB_OUTPUT

hconf.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ groups:
2626
- benchmarks
2727
- .
2828
prefix: true
29-
- name: hconf
30-
packages:
31-
- hconf
32-
dir: ./
3329
builds:
3430
- ghc: 8.4.4
3531
resolver: lts-12.26

hconf/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

hconf/README.md

Lines changed: 0 additions & 245 deletions
This file was deleted.

0 commit comments

Comments
 (0)