Skip to content

Conversation

@jiribenes
Copy link
Contributor

@jiribenes jiribenes commented Oct 30, 2025

Trying to speed-up CI by having multiple jobs: total time goes from some 20-30 minutes down to 12!

@jiribenes jiribenes added the github-actions Pull requests that update GitHub Actions code label Oct 30, 2025
~/.sbt
~/.cache/coursier
key: effekt-build-${{ github.sha }}
fail-on-cache-miss: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great question: the cache here is a bit misleading, the whole point is to allow multi-machine builds by packaging up the build env after building and then restoring it just before calling sbt testWhatever in order to prevent recompiling


on:
pull_request:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing we could consider is adding a concurrency group and cancel running jobs when a new commit is pushed:

concurrency:
  group: ci-pr-${{ github.workflow }}-${{ github.head_ref || github.ref }}
  cancel-in-progress: true

This saves CI minutes but has the disadvantage that some commits may not be tested and situations can arise where one has to wait longer for any CI feedback (in case of frequent pushes).

Copy link
Contributor

@timsueberkrueb timsueberkrueb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this will improve our developer experience a lot!

@jiribenes jiribenes merged commit e9d4ab9 into effekt-lang:master Oct 30, 2025
6 checks passed
danielflat pushed a commit that referenced this pull request Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github-actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants