Skip to content

Commit 3302bdf

Browse files
committed
Use specific project file for benchmarks
1 parent a02992e commit 3302bdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/bench.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ jobs:
5858
# max-backjumps is increased as a temporary solution
5959
# for dependency resolution failure
6060
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
61-
run: cabal configure --enable-benchmarks --max-backjumps 12000
61+
run: cabal configure --enable-benchmarks --max-backjumps 12000 --project-file cabal-benchmark.project
6262

6363
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
6464
name: Build
6565
shell: bash
66-
run: cabal build ghcide:benchHist
66+
run: cabal build ghcide:benchHist --project-file cabal-benchmark.project
6767

6868
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
6969
name: Bench init
7070
shell: bash
71-
run: cabal bench ghcide:benchHist -j --benchmark-options="all-binaries"
71+
run: cabal bench ghcide:benchHist -j --benchmark-options="all-binaries" --project-file cabal-benchmark.project
7272

7373
# tar is required to preserve file permissions
7474
# compression speeds up upload/download nicely
@@ -142,7 +142,7 @@ jobs:
142142
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
143143
name: Bench
144144
shell: bash
145-
run: cabal bench ghcide:benchHist -j --benchmark-options="${{ matrix.example }}"
145+
run: cabal bench ghcide:benchHist -j --benchmark-options="${{ matrix.example }}" --project-file cabal-benchmark.project
146146

147147
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
148148
name: Display results

0 commit comments

Comments
 (0)