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

[rust] Use static linking using cross-compiling to target x86_64-unknown-linux-musl in GH Actions #11749

Merged
merged 7 commits into from
Mar 10, 2023

Conversation

bonigarcia
Copy link
Member

Description

This PR changes the default cargo target on GH Actions for Linux, from x86_64-unknown-linux-gnu to x86_64-unknown-linux-musl. This target should ensure static linking in selenium-manager binaries for Linux. Cross-compiling in GH Actions is done through cargo-zigbuild.

Motivation and Context

This PR should prevent issues like #11717.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@bonigarcia bonigarcia merged commit cb6ff29 into trunk Mar 10, 2023
@bonigarcia bonigarcia deleted the se_mgr_musl branch March 10, 2023 08:41
alpatron pushed a commit to alpatron/selenium that referenced this pull request Mar 15, 2023
…own-linux-musl in GH Actions (SeleniumHQ#11749)

* [rust] Compile selenium-manager using x86_64-unknown-linux-musl target in Linux

* [rust] Change way to install cargo-zigbuild

* [rust] Remove zibguild

* [rust] Install cargo-zigbuild again

* [rust] Disable crt-static

* [rust] Install zip in Linux

* [rust] Remove debugging symbols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants