Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to dfinity/setup-dfx action #2346

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented Mar 8, 2024

This PR removes our local setup-dfx action and replaces it with the one maintained by the SDK team. This action has the advantage that it integrates with the new dfxvm and reads the desired dfx version from dfx.json.

Adding the version there also aligns the dfx version used locally with the one on CI. The dfx version will be bumped to 0.18.0 in a follow-up PR.

Side-note on CI runtime: the dfinity/setup-dfx does not use caching (unlike our version) but still takes only about 4s to complete. Given that we get rid of some complexity that way, I think the 3s are worth it.

Also, because the dfinity/setup-dfx action is not yet properly published on the market place (there is an open issue for that here) a specific commit is pinned instead.

This PR removes our local `setup-dfx` action and replaces it with the one
maintained by the SDK team. This action has the advantage that it integrates
with the new `dfxvm` and reads the desired dfx version from `dfx.json`.

Adding the version there also aligns the dfx version used locally with the
one on CI. The dfx version will be bumped to `0.18.0` in a follow-up
commit.

Side-note on CI runtime: the `dfinity/setup-dfx` does not use caching
(unlike our version) but still takes only about 4s to complete.
Given that we get rid of some complexity that way, I think the 3s are
worth it.

Also, because the `dfinity/setup-dfx` action is not yet properly published
on the market place (there is an open issue for that [here](dfinity/setup-dfx#8))
a specific commit is pinned instead.
Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@frederikrothenberger frederikrothenberger added this pull request to the merge queue Mar 11, 2024
Merged via the queue into main with commit b419b80 Mar 11, 2024
63 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/test-dfx-action branch March 11, 2024 07:52
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.

2 participants