Skip to content

Improve CI for Linux #10

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

Closed
wants to merge 10 commits into from
Closed

Improve CI for Linux #10

wants to merge 10 commits into from

Conversation

andi-makes
Copy link
Contributor

@andi-makes andi-makes commented Oct 18, 2022

Changing the build command for the linux-release job to use cross. The linux target gets compiled against glibc version 2.17, the lowest rust >= 1.60 itself supports, which should maximize compatibility for many linux distros.

If desired, we can also use cross to setup a build using musl instead of libc. According to my testing, a binary built with musl doesn't work on wayland though, because of this issue.

I also implemented a simple cargo check workflow for every platform, which is currently triggered by a push.

At the moment, this is an initial draft. Things I would like to improve further are:

  • Caching
  • Run cargo clippy on push
  • Run cargo fmt --check on push

If this PR looks like it is going in the right direction, I'd like to continue working on above points, otherwise I'm open to change the PR according to your needs.

@andi-makes andi-makes marked this pull request as ready for review October 29, 2022 21:37
@CheaterCodes
Copy link
Collaborator

From what I understand, you're targeting main-centos, which seems to me like a moving tag. If we don't want unexpected surprises, maybe we should use something like 0.2.4-centos?
I'm not sure if I understood this correctly, and I don't know which image has which glibc version, but I'm worried that the current setup will stop working one day.

Added some comments to the Cross.toml file to provide further
information of the glibc version that will be used corresponding with
the build image.

Additionally, pinned the build image version to 0.2.4-centos.
@andi-makes
Copy link
Contributor Author

Good point on the build image version, changed that in the most recent commit.

I also added some comments which are providing information to the corresponding glibc version and where to find that information.

@andi-makes
Copy link
Contributor Author

It's been half a year, and I am no longer interested in this PR. Feel free to use this PR as a starting point if desired.

@andi-makes andi-makes closed this Jun 21, 2023
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