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

CI updated to include commit SHA in version number when creating nightly build #2069

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

axmmisaka
Copy link
Collaborator

@axmmisaka axmmisaka commented Oct 20, 2023

This looks like sticking a big piece of duct tape on a giant pile of duct tapes, but I think this is the only way I could think of that could fix #2066.

If there are ways to pass the commit SHA in as gradle/compiler property for the compiler to use, I'm all ears.

Result:
image

@axmmisaka axmmisaka added build system ci Continuous integration labels Oct 23, 2023
Copy link
Collaborator

@erlingrj erlingrj left a comment

Choose a reason for hiding this comment

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

Cool, thanks for looking at this @axmmisaka. I don't think your approach is hacky at all! I suggest that we format it a little "cleaner" and adds the date of the build. This is also how rustc --version looks.

.github/workflows/nightly-build.yml Outdated Show resolved Hide resolved
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

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

LGTM!

@lhstrh lhstrh enabled auto-merge October 23, 2023 22:56
@lhstrh lhstrh added this pull request to the merge queue Oct 23, 2023
Merged via the queue into master with commit 3072892 Oct 24, 2023
41 checks passed
@lhstrh lhstrh deleted the snapshot-show-commit-as-well branch October 24, 2023 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system ci Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lfc --version should give the commit ID, not just SNAPSHOT
3 participants