Skip to content

Commit

Permalink
Inline GHC version and stack version from CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
L7R7 committed Jun 13, 2024
1 parent c37aaa5 commit 0db6dd9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ jobs:

build_artifact:
needs: [create_release]
name: ${{ matrix.os }}/GHC ${{ matrix.ghc }}/${{ github.ref }}
name: ${{ matrix.os }}/GHC 9.6.5/${{ github.ref }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
ghc:
- "9.6.5"
stack: ["2.15.7"]

steps:
- name: Check out code
Expand All @@ -59,17 +56,17 @@ jobs:
uses: haskell-actions/setup@v2.7.3
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
ghc-version: 9.6.5
enable-stack: true
stack-version: ${{ matrix.cabal }}
stack-version: 2.15.7

- name: Cache ~/.stack
uses: actions/cache@v4
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/stack.yaml.lock','**/gitlab-helper.cabal') }}-v2
key: ${{ runner.os }}-9.6.5-${{ hashFiles('**/stack.yaml.lock','**/gitlab-helper.cabal') }}-v2
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
${{ runner.os }}-9.6.5-
- name: Build binary
run: |
Expand Down

0 comments on commit 0db6dd9

Please sign in to comment.