Skip to content

Commit

Permalink
Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Sep 24, 2020
1 parent 4d40641 commit a5d0296
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/haskell.yml
Expand Up @@ -25,12 +25,6 @@ jobs:
echo "BINARY_CACHE_THREADS: $BINARY_CACHE_THREADS"
echo "BINARY_CACHE_URI: $BINARY_CACHE_URI"
- uses: msys2/setup-msys2@v2
if: matrix.os == 'windows-latest'
with:
update: true
install: autoconf

- uses: actions/setup-haskell@v1
id: setup-haskell
with:
Expand Down Expand Up @@ -75,25 +69,14 @@ jobs:
- name: Select build directory
run: echo "::set-output name=CABAL_BUILDDIR::dist"

- name: Install dependencies (Posix)
- name: Install dependencies
if: matrix.os != 'windows-latest'
run: cabal build all --builddir dist --enable-tests --enable-benchmarks --write-ghc-environment-files=always --only-dependencies

- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
echo "Path bash: $PATH"
msys2 -c 'echo "Path msys2: $PATH"'
msys2 -c "cabal build all --builddir dist --enable-tests --enable-benchmarks --write-ghc-environment-files=always --only-dependencies"
- name: Build (Posix)
- name: Build
if: matrix.os != 'windows-latest'
run: cabal build all --builddir dist --enable-tests --enable-benchmarks --write-ghc-environment-files=always

- name: Build (Windows)
if: matrix.os == 'windows-latest'
run: msys2 -c "cabal build all --builddir dist --enable-tests --enable-benchmarks --write-ghc-environment-files=always"

- name: Save cabal cache
uses: haskell-works/cabal-cache-action@v1
if: ${{ always() }}
Expand Down

0 comments on commit a5d0296

Please sign in to comment.