Skip to content

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

Merged
bonigarcia merged 7 commits intotrunkfrom
se_mgr_musl
Mar 10, 2023
Merged

[rust] Use static linking using cross-compiling to target x86_64-unknown-linux-musl in GH Actions#11749
bonigarcia merged 7 commits intotrunkfrom
se_mgr_musl

Conversation

@bonigarcia
Copy link
Copy Markdown
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.

2 participants