Skip to content

build: release ppc64le/riscv64 and improve reproducibility #1118

Merged
shizhMSFT merged 3 commits into
oras-project:mainfrom
katexochen:feat/release-ppc
Sep 28, 2023
Merged

build: release ppc64le/riscv64 and improve reproducibility #1118
shizhMSFT merged 3 commits into
oras-project:mainfrom
katexochen:feat/release-ppc

Conversation

@katexochen

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Release for more architectures, as oras is getting more popular 🎉 and some use cases require more exotic architectures.

Also improving the reproducibility of release artifacts by

  • trimming paths (making the build independent from the current directory)
  • set build ID to empty string
  • set binary timestamp to commit timestamp
  • strip binary (reduces size from 9.2MB to 8.5MB)

Which issue(s) this PR fixes:
Fixes #1111

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test? does not apply
  • Does this change require a documentation update? no
  • Does this introduce breaking changes that would require an announcement or bumping the major version? no
  • Do all new files have an appropriate license header? does not apply

Comment thread Makefile Outdated
Comment thread Makefile Outdated
@katexochen katexochen changed the title Release binaries for ppc64/ppc64le/riscv64 and improve release reproducibility Release binaries for ppc64le/riscv64 and improve release reproducibility Sep 12, 2023
@qweeah qweeah changed the title Release binaries for ppc64le/riscv64 and improve release reproducibility build: release ppc64le/riscv64 and improve reproducibility Sep 12, 2023

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. I have verified that Linux and Windows amd64 binaries built are working as expected.

@shizhMSFT shizhMSFT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with nit questions.

Comment thread .goreleaser.yml
@shizhMSFT

Copy link
Copy Markdown
Contributor

@katexochen Could you rebase the branch so that we can merge?

@codecov-commenter

codecov-commenter commented Sep 24, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.12%. Comparing base (4cf5390) to head (ad7a18c).
Report is 395 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1118      +/-   ##
==========================================
+ Coverage   80.06%   80.12%   +0.06%     
==========================================
  Files          57       57              
  Lines        2994     2994              
==========================================
+ Hits         2397     2399       +2     
+ Misses        412      410       -2     
  Partials      185      185              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
- trim paths
- set build ID to empty string
- set binary timestamp to commit timestamp
- strip binary (reduces size from 9.2MB to 8.5MB)

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
@katexochen

Copy link
Copy Markdown
Contributor Author

@shizhMSFT I rebased again, could you approve the CI?

@shizhMSFT shizhMSFT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@shizhMSFT shizhMSFT merged commit a59ab32 into oras-project:main Sep 28, 2023
@katexochen katexochen deleted the feat/release-ppc branch September 28, 2023 04:00
@FeynmanZhou FeynmanZhou mentioned this pull request Nov 20, 2023
1 task
@FeynmanZhou FeynmanZhou added this to the v1.2.0 milestone Jan 11, 2024
@rpardini

rpardini commented Mar 3, 2024

Copy link
Copy Markdown

Just sayin', this enabled Armbian building on riscv64. Armbian uses ghcr.io + ORAS for distributed builds. 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.

Binaries are missing for ppc64le and riscv64

8 participants