Skip to content

Commit

Permalink
cli atrifact
Browse files Browse the repository at this point in the history
  • Loading branch information
nalchevanidze committed Jun 4, 2024
1 parent 2eff5e2 commit 3141790
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 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 @@ -17,12 +17,6 @@ runs:
ghc-version: ${{ inputs.ghc }}
enable-stack: true

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

- name: Setup Haskell
uses: haskell/actions/[email protected]
with:
Expand Down
32 changes: 28 additions & 4 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,40 @@ 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 morpheus) ./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: false
runs-on: ${{ matrix.os }}
name: GHC ${{ matrix.ghc}} (${{ matrix.os }})
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 files
run: |
./cli/hconf setup ${{ matrix.ghc }}
- name: Setup
uses: ./.github/actions/setup-hs
Expand Down

0 comments on commit 3141790

Please sign in to comment.