Skip to content

Commit 756b537

Browse files
committed
Try the cabal configure suggestion in CI flags job
1 parent c932d99 commit 756b537

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/flags.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@ jobs:
6969
ghc: ${{ matrix.ghc }}
7070
os: ${{ runner.os }}
7171

72-
- name: Build `hls-graph` with flags
73-
run: cabal v2-build hls-graph --flags="embed-files stm-stats pedantic"
74-
75-
- name: Build `ghcide` with flags
76-
run: cabal v2-build ghcide --flags="ghc-patched-unboxed-bytecode test-exe executable bench-exe ekg"
72+
- name: Configue extra flags for some components
73+
run: |
74+
cabal configure \
75+
--constraint "hls-graph +embed-files +stm-stats +pedantic" \
76+
--constraint "ghcide +ekg +executable +pedantic +test-exe"
77+
cat cabal.project.local
7778
7879
- name: Build with pedantic (-WError)
79-
run: cabal v2-build --flags="pedantic"
80+
run: cabal v2-build --flags=pedantic
8081

8182
flags_post_job:
8283
if: always()

0 commit comments

Comments
 (0)