Skip to content

Commit

Permalink
ci: retain haskell paths
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Oct 23, 2023
1 parent 5fc1b3c commit e3632ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ jobs:
if: runner.os == 'Windows'
run: |
echo 'skip-msys: true' >> stack.yaml
echo "HASKELL_PATHS=$HASKELL_PATHS" >> "$GITHUB_ENV"
env:
HASKELL_PATHS: ${{ steps.stack.outputs.ghc-path }}:${{ steps.stack.outputs.cabal-path }}:${{ steps.stack.outputs.stack-path }}

- name: Cache Local
uses: actions/cache@v3
Expand Down Expand Up @@ -101,9 +104,11 @@ jobs:

- name: Build Dependencies
run: |
export PATH="$HASKELL_PATHS:$PATH"
stack build --ghc-options="-Werror" --extra-include-dirs=$HOME/.local/include --extra-lib-dirs=$HOME/.local/lib --only-dependencies
- name: Build and install echidna
run: |
export PATH="$HASKELL_PATHS:$PATH"
stack install --flag echidna:static --ghc-options="-Werror" --extra-include-dirs=$HOME/.local/include --extra-lib-dirs=$HOME/.local/lib
- name: Amend and compress binaries (macOS)
Expand Down

0 comments on commit e3632ff

Please sign in to comment.