Skip to content

Commit

Permalink
feat: don't run compiler version check when ghc version isn't fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Jan 23, 2024
1 parent 65802ca commit c3d4001
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

stack:
- resolver: nightly
ghc: "9.8.1"
- resolver: lts
- resolver: lts-22.7
ghc: "9.6.4"
- resolver: lts-20.2
Expand All @@ -50,12 +50,15 @@ jobs:
working-directory: example
stack-arguments: --resolver ${{ matrix.stack.resolver }}
cache-prefix: ${{ matrix.stack.resolver }}/

- shell: bash

- if: matrix.stack.resolver != 'lts' && matrix.stack.resolver != 'nightly'

This comment has been minimized.

Copy link
@pbrisbin

pbrisbin Jan 23, 2024

Member

Wouldn't

- if: matrix.stack.ghc

Be more directly what you mean?

don't run compiler version check when ghc version isn't fixed

shell: bash
run: |
[[ "${{ steps.stack.outputs.compiler }}" = ghc-${{ matrix.stack.ghc }} ]]
[[ "${{ steps.stack.outputs.compiler-version }}" = ${{ matrix.stack.ghc }} ]]
- shell: bash
run: |
# stack path | cut -d: -f1
[[ -n "${{ steps.stack.outputs.snapshot-doc-root }}" ]]
[[ -n "${{ steps.stack.outputs.local-doc-root }}" ]]
Expand Down

0 comments on commit c3d4001

Please sign in to comment.