Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 43 additions & 1 deletion .github/workflows/cabal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches: ['master']

jobs:
continuous-integration:
tests:
# You can skip continuous integration by writing '[ci skip]' or '[skip ci]' in a commit message,
# which is useful to preserve computing resources
#
Expand Down Expand Up @@ -83,3 +83,45 @@ jobs:
timeout-minutes: 10
# We run each test suite one-by-one to better observe problems.
run: cabal test all -j1

benchmark:
# You can skip continuous integration by writing '[ci skip]' or '[skip ci]' in a commit message,
# which is useful to preserve computing resources
#
# For example:
# > git commit -am "[skip ci] fixed x y z"
if: contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false
runs-on: ubuntu-latest
env:
# See issue 479 for when we can move up to GHC 9.14
GHC_VERSION: '9.12'

steps:
- uses: actions/checkout@v4

- uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ env.GHC_VERSION }}

- name: Configure build
run: |
cabal configure --disable-tests --semaphore -j
# Generate a plan.json
cabal build all --project-file=cabal.optimized.project --dry-run

- name: Cache cabal store
uses: actions/cache@v4
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-benchmark-${{ hashFiles('**/plan.json') }}
restore-keys: |
${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-benchmark

- name: Build
run: cabal build all --project-file=cabal.optimized.project

# Run benchmarks with j1 so that we don't get interleaved output
- name: Run benchmarks
run: |
cabal bench all -j1 --project-file=cabal.optimized.project
8 changes: 8 additions & 0 deletions cabal.optimized.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import: cabal.project

-- Turns on optimizations for local packages
-- and also for third-party packages
optimization: 2

package *
optimization: 2
1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
packages: packages/*/**.cabal
tests: true
benchmarks: true

package distributed-process-tests
flags: +tcp
1 change: 1 addition & 0 deletions packages/distributed-process/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Unreleased

* Added support for `containers-0.8`.
* Reworked benchmarks, which can now be run using `cabal bench distributed-process`.

2025-02-04 Laurent P. René de Cotret <laurent.decotret@outlook.com> 0.7.8

Expand Down
43 changes: 0 additions & 43 deletions packages/distributed-process/benchmarks/Channels.hs

This file was deleted.

39 changes: 0 additions & 39 deletions packages/distributed-process/benchmarks/Latency.hs

This file was deleted.

Loading
Loading