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

Fix cross-compilation issues #147

Closed
wants to merge 4 commits into from

Conversation

afinetooth
Copy link
Member

@afinetooth afinetooth commented Aug 27, 2024

⚡ Summary

Properly build statically linked binaries with the shards build --production command.

☑️ Checklist

  • Properly compile statically linked binary with shards build command, using the correct target (src/cli.cr).
  • Compile with production dependencies only using the --production flag.
    • Drop all dependency management steps required with previous crystal build method
  • Strip the binaries to reduce their size before the build.yml workflow archives them.

…using correct target and production dependencies only (no development dependencies).
Copy link

coveralls-official bot commented Aug 27, 2024

Pull Request Test Coverage Report for Build 10587995752

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.983%

Totals Coverage Status
Change from base Build 10569709259: 0.0%
Covered Lines: 906
Relevant Lines: 964

💛 - Coveralls

…hards build command already drops the binary it creates into a bin/ directory. For this same reason, we can also remove the mkdir step for that directory, since it seems the shards build command will create it for us.
…d (minor) make archiving verbose in build.yml.
@afinetooth afinetooth marked this pull request as draft September 11, 2024 21:40
@afinetooth afinetooth marked this pull request as draft September 11, 2024 21:40
@afinetooth afinetooth closed this Sep 19, 2024
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.

1 participant