Skip to content

Convert to composite action over stack-action#393

Merged
pbrisbin merged 1 commit intomainfrom
pb/pass
Apr 2, 2026
Merged

Convert to composite action over stack-action#393
pbrisbin merged 1 commit intomainfrom
pb/pass

Conversation

@pbrisbin
Copy link
Copy Markdown
Member

@pbrisbin pbrisbin commented Apr 2, 2026

This is an minor improvement over archiving as-is with documentation
pushing users to stack-action. As a composite, this action should
require little-to-no maintenance; only if/when stack-action has a
major version bump.

The known downsides to this approach are:

  1. We lost the cache-hit output
  2. Building with --dry-run does do some more work than before
  3. The setup step installs GHC if necessary

Of these, only (3) is a minor concern since it does add a bit of time.

However:

  • It only happens on un-cached runs, and
  • If we assume users of this action will in fact build something
    somewhere, we are not adding this time, only moving it

Therefore, we consider this acceptable.

This is an minor improvement over archiving as-is with documentation
pushing users to `stack-action`. As a `composite`, this action should
require little-to-no maintenance; only if/when `stack-action` has a
major version bump.

The known downsides to this approach are:

1. We lost the `cache-hit` output
2. Building with `--dry-run` does do some more work than before
3. The `setup` step installs GHC if necessary

Of these, only (3) is a minor concern since it does add a bit of time.

However:

* It only happens on un-cached runs, and
* If we assume users of this action will in fact build something
  somewhere, we are not _adding_ this time, only moving it

Therefore, we consider this acceptable.
@pbrisbin pbrisbin requested review from chris-martin and mjgpy3 April 2, 2026 15:13
@pbrisbin pbrisbin marked this pull request as ready for review April 2, 2026 15:13
@pbrisbin pbrisbin requested a review from a team as a code owner April 2, 2026 15:13
@pbrisbin pbrisbin removed the request for review from a team April 2, 2026 15:13
Copy link
Copy Markdown
Contributor

@mjgpy3 mjgpy3 left a comment

Choose a reason for hiding this comment

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

Awesome!

@pbrisbin pbrisbin linked an issue Apr 2, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@chris-martin chris-martin left a comment

Choose a reason for hiding this comment

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

Very cool.

@pbrisbin pbrisbin merged commit 7af95e2 into main Apr 2, 2026
4 checks passed
@pbrisbin pbrisbin deleted the pb/pass branch April 2, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider archiving in favor of stack-action

3 participants