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

[release] Build vmtest binary for aarch64 and s390x too #52

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

chantra
Copy link
Collaborator

@chantra chantra commented Jan 10, 2024

Build vmtest for x86_64, aarch64, and s390x.
As a side effect, x86_64 does not need a x86_64 anymore to be compiled.

Example release: https://github.com/chantra/danobi-vmtest/releases/tag/v1.0.0

Build vmtest for x86_64, aarch64, and s390x.
As a side effect, x86_64 does not need a x86_64 anymore to be compiled.

Example release: https://github.com/chantra/danobi-vmtest/releases/tag/v1.0.0

Signed-off-by: Manu Bretelle <chantr4@gmail.com>
Copy link
Owner

@danobi danobi left a comment

Choose a reason for hiding this comment

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

As a side effect, x86_64 does not need a x86_64 anymore to be compiled.

Not sure I got what you mean by that, but lgtm here. Might be nice to pull the code into a file in scripts/ but not a big deal

@chantra
Copy link
Collaborator Author

chantra commented Jan 10, 2024

As a side effect, x86_64 does not need a x86_64 anymore to be compiled.

Not sure I got what you mean by that, but lgtm here.

Because we install the $arch toolchain regardless of what the host architecture is.

ex: if host is arm64, we will still run:

sudo apt install -y gcc-${arch//_/-}-linux-gnu
rustup target add "${arch}-unknown-linux-gnu"
...

for x86_64, resulting on cross-compiling vmtest for x86_64

Might be nice to pull the code into a file in scripts/ but not a big deal

Agreed, let me do this....

@chantra
Copy link
Collaborator Author

chantra commented Jan 10, 2024

moved to a script. Fixed some potential issue (e.g do not install toolchain for the running platform).

workflow run: https://github.com/chantra/danobi-vmtest/actions/runs/7479502764/job/20356831774
released artifacts: https://github.com/chantra/danobi-vmtest/releases/tag/v2.0.0

Copy link
Owner

@danobi danobi left a comment

Choose a reason for hiding this comment

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

thanks!

scripts/build_release.sh Outdated Show resolved Hide resolved
scripts/build_release.sh Outdated Show resolved Hide resolved
* Make the script default to x86_64,aarch64, and s390x.
* Speed up toolchain installation by batching it in one command.
* save targets using the architecture name emmited by `uname -m` instead of debian architecture name.

Signed-off-by: Manu Bretelle <chantr4@gmail.com>
@danobi danobi merged commit 1e87459 into danobi:master Jan 11, 2024
1 check passed
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