Skip to content

Commit

Permalink
Fixed CI for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPietzschmann committed Jul 17, 2024
1 parent bb2b919 commit 3eef04c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Build and test
jobs:
ci:
name: Build on ${{ matrix.os }}
env:
stack: stack --system-ghc
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -29,26 +27,26 @@ jobs:

- name: Build package dependencies
run: |
$stack build --no-run-tests --no-run-benchmarks --only-dependencies
stack --system-ghc build --no-run-tests --no-run-benchmarks --only-dependencies
- name: Build package
run: |
$stack build --no-run-tests --no-run-benchmarks
stack --system-ghc build --no-run-tests --no-run-benchmarks
- name: Build testing dependencies
run: |
$stack build --no-run-tests --no-run-benchmarks --test --bench
stack --system-ghc build --no-run-tests --no-run-benchmarks --test --bench
- name: Run tests
run: |
$stack build --test --no-run-benchmarks
stack --system-ghc build --test --no-run-benchmarks
- name: Build documentation
run: |
$stack haddock
stack --system-ghc haddock
- name: Check documentation
if: matrix.os != 'windows-latest'
run: |
$stack install doctest
$(stack path --local-bin)${path.sep}doctest src/
stack --system-ghc install doctest
$(stack path --local-bin)/doctest src/

0 comments on commit 3eef04c

Please sign in to comment.