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

Build aptos-node-v1.23.3 #22

Merged
merged 3 commits into from
Nov 21, 2024
Merged

Build aptos-node-v1.23.3 #22

merged 3 commits into from
Nov 21, 2024

Conversation

jasonxh
Copy link
Contributor

@jasonxh jasonxh commented Nov 21, 2024

Also decouple the target ref from the actual commit. Always (re)resolve the target ref into the commit SHA before building, and cache the binaries image based on SHA instead. This improves both of these scenarios:

  • Building a new tag on an existing (already built) commit. No need to manually retag or rebuild the image.
  • Rebuilding an existing tag which has been updated to point to a new commit. No need to manually delete the cache image to trigger rebuild.

[sc-4521]

runs-on: ubuntu-latest
outputs:
aptos_git_sha: ${{ steps.resolve.outputs.aptos_git_sha }}
steps:

Choose a reason for hiding this comment

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

Instead of cloning/downloading the repo, would it make more sense to just use the github REST API?
https://api.github.com/repos/aptos-labs/aptos-core/git/refs/tags/aptos-node-v1.23.3 seems to return everything we need.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good idea, but it'll be a little trickier to be able to support other ref kinds (branches, commits).

@jasonxh jasonxh requested a review from ivanpeng-sh November 21, 2024 22:48
@jasonxh jasonxh requested a review from jachen-sh November 21, 2024 23:22
@jasonxh jasonxh merged commit 8fd4956 into main Nov 21, 2024
4 checks passed
@jasonxh jasonxh deleted the aptos-node-v1.23.3 branch November 21, 2024 23:59
jasonxh added a commit to shinamicorp/sui-docker that referenced this pull request Nov 27, 2024
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