Skip to content

Commit e87b30f

Browse files
committed
Use updo generated Stack project
1 parent 24ee33d commit e87b30f

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/stack.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414
matrix:
1515
cabal: ["3.10.3.0"]
1616
vers:
17+
- {ghc: "9.4.8", stackage: "lts-21.25"}
1718
- {ghc: "9.8.2", stackage: "nightly-2024-05-18"}
19+
ghc-default: ["9.4.8"]
1820

1921
steps:
2022
- uses: actions/checkout@v4
@@ -70,15 +72,26 @@ jobs:
7072
if: steps.pantry.outputs.cache-hit != 'true'
7173
run: stack update
7274

75+
- name: Stack resolver check
76+
if: ${{ matrix.vers.ghc == matrix.ghc-default }}
77+
run: grep "${{ matrix.vers.stackage }}" stack.yaml
78+
79+
- name: Stack lock check
80+
if: ${{ matrix.vers.ghc == matrix.ghc-default }}
81+
run: stack test --no-run-tests --dry-run --lock-file=error-on-write
82+
83+
- name: Generate Stack project
84+
run: GHC_VERSION=${{ matrix.vers.ghc }} STACKAGE_VERSION=${{ matrix.vers.stackage }} make -f project-files.mk ${{ matrix.vers.ghc}}.dhall2stack.yaml
85+
86+
- name: Build
87+
run: stack test --no-run-tests --no-terminal --stack-yaml=ghc-${{ matrix.vers.ghc }}.dhall2stack.yaml
88+
7389
- name: Save cached dependencies
7490
uses: actions/cache/save@v4
7591
if: steps.pantry.outputs.cache-hit != 'true'
7692
with:
7793
path: ${{ steps.setup.outputs.stack-root }}/pantry
78-
key: ${{ steps.cache.outputs.cache-primary-key }}
79-
80-
- name: build
81-
run: stack test --no-run-tests --no-terminal
94+
key: ${{ steps.pantry.outputs.cache-primary-key }}
8295

83-
- name: test golden
84-
run: stack test hpack-dhall:golden --no-terminal --test-arguments "--color=always"
96+
- name: Test
97+
run: stack test hpack-dhall:golden --test-arguments "--color=always" --no-terminal --stack-yaml=ghc-${{ matrix.vers.ghc }}.dhall2stack.yaml

0 commit comments

Comments
 (0)