Skip to content

Commit

Permalink
Merge pull request #13 from bodo-run/lto
Browse files Browse the repository at this point in the history
feat: add release profile optimizations
  • Loading branch information
mohsen1 authored Jan 18, 2025
2 parents 7ee6415 + 0e981ef commit d565a82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ jobs:
*.tar.gz
*.zip
- name: Copy installation script to bodo.run
if: steps.semantic.outputs.new_release_published == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
Expand All @@ -144,6 +145,11 @@ jobs:
BODO_COMMIT_MESSAGE=$(git log -1 --pretty=%B)
cd bodo-run.github.io
git add public/stop-nagging.sh public/stop-nagging.ps1
# Exit with 0 if no changes
if git diff --exit-code; then
echo "No changes to commit"
exit 0
fi
git commit -m "Update stop-nagging installation scripts" \
-m "" \
-m "$BODO_COMMIT_MESSAGE" \
Expand Down
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ thiserror = "1.0"
assert_cmd = "2.0"
predicates = "2.0"
tempfile = "3.8"

[profile.release]
lto = true
codegen-units = 1
strip = true # Strip symbols from binary
opt-level = 3 # Maximum optimization

0 comments on commit d565a82

Please sign in to comment.