Skip to content

Conversation

@blishko
Copy link
Collaborator

@blishko blishko commented Apr 29, 2025

Description

This aims to replace the GitHub actions from DeterminateSystems since their Magic Nix Cache action is discontinued.
I believe we can use cache-nix-action which simply wraps the cache GitHub action and does not store the cache anywhere outside of GitHub.
The proposed action requires a bit of manual configuration but not too much.

Moreover, I believe we only need the cache for CI build (ci package of hevm, our build.yaml workflow).
The other workflows, Check Dependencies and Release do not need to use a cache at all.
Specifically, for releases, I think it is better not to use a cache and build the environment from scratch.

There is one more change prosed here: The static build for Linux takes a long time, because it is building the whole GHC from scratch. I believe we do not need to do this on CI, where we want to have relatively quick feedback.
The release workflow will still build static binary (this is the redistributable package, as opposed to the ci package in flake.nix.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

@blishko blishko force-pushed the ci-replace-determinate-systems branch 5 times, most recently from 7b8e02f to 8dd54c5 Compare April 30, 2025 06:25
@blishko blishko force-pushed the ci-replace-determinate-systems branch from 8dd54c5 to 3b03ab6 Compare April 30, 2025 09:01
It is safer to build everything from scratch
@blishko blishko force-pushed the ci-replace-determinate-systems branch from 3b03ab6 to b181894 Compare April 30, 2025 09:04
@blishko blishko changed the title [DRAFT] Remove actions from DeterminateSystems Replace actions from DeterminateSystems Apr 30, 2025
@blishko blishko marked this pull request as ready for review April 30, 2025 09:58
@blishko blishko requested a review from msooseth April 30, 2025 09:58
Copy link
Collaborator

@msooseth msooseth left a comment

Choose a reason for hiding this comment

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

LGTM

@msooseth msooseth merged commit bdaaa13 into main Apr 30, 2025
16 of 18 checks passed
@msooseth msooseth deleted the ci-replace-determinate-systems branch April 30, 2025 10:25
@msooseth
Copy link
Collaborator

Thank you!!!

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.

3 participants