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

Use static Linux SDK in Dockerfile #1915

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Cyberbeni
Copy link
Contributor

Partially fixes #1894
provenance: false is for removing unknown/unknown from the OS/Arch tab here: https://github.com/nicklockwood/SwiftFormat/pkgs/container/swiftformat/272228423?tag=latest
Everything else should be self-explanatory.
Building for regular distribution on Linux could be done with the --output flag of docker build: https://docs.docker.com/build/building/export/

Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.30%. Comparing base (ed75a31) to head (43ae6a2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1915      +/-   ##
==========================================
+ Coverage   94.78%   95.30%   +0.52%     
==========================================
  Files          20       20              
  Lines       18081    23082    +5001     
==========================================
+ Hits        17138    21999    +4861     
- Misses        943     1083     +140     

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

@Cyberbeni
Copy link
Contributor Author

If we want stripped binaries then adding this to Package.swift should be the equivalent of the current xcodeproj setting:

linkerSettings: [
    .unsafeFlags(["-Xlinker", "-S"], .when(configuration: .release)),
]

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.

Use Static Linux SDK for the Docker and Linux releases
1 participant