-
Notifications
You must be signed in to change notification settings - Fork 2
Update build.yml #57
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
Update build.yml #57
Conversation
WalkthroughThe macOS build workflow was updated to enhance dead code stripping, restrict LLVM targets to X86, and dynamically patch all relevant CMake implicit link info files. The draft release job was also updated to explicitly set the tag and release name based on the commit SHA. Changes
Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/build.yml (1)
137-145
: Patch all CMake implicit link info files dynamically
Replacing the hard-coded path with afind … | sed
loop ensures you cover all Homebrew CMake info files. Consider handling paths with whitespace more robustly, for example:- FILES=$(find "$BREW_PREFIX" -name CMakeParseImplicitLinkInfo.cmake) - for file in $FILES; do + find "$BREW_PREFIX" -name CMakeParseImplicitLinkInfo.cmake -print0 | \ + while IFS= read -r -d '' file; do echo "Patching $file" sed -i.backup 's/gcc_eh.*|/gcc_eh.*|gcc_ext.*|/g' "$file" doneThis avoids word-splitting issues on paths that contain whitespace.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/build.yml
(4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (20)
- GitHub Check: build (8, windows)
- GitHub Check: build (9, windows)
- GitHub Check: build (12, windows)
- GitHub Check: build (12.0.1, windows)
- GitHub Check: build (12, linux)
- GitHub Check: build (13, windows)
- GitHub Check: build (14, windows)
- GitHub Check: build (15, windows)
- GitHub Check: build (15, linux)
- GitHub Check: build (17, windows)
- GitHub Check: build (16, windows)
- GitHub Check: build (20, windows)
- GitHub Check: build (19, windows)
- GitHub Check: build (16, linux)
- GitHub Check: build (18, macosx)
- GitHub Check: build (18, linux)
- GitHub Check: build (19, macosx)
- GitHub Check: build (19, linux)
- GitHub Check: build (20, macosx)
- GitHub Check: build (20, linux)
🔇 Additional comments (4)
.github/workflows/build.yml (4)
66-66
: Enable dead code stripping and restrict targets to X86
Good addition of-ffunction-sections -fdata-sections
and-Wl,-dead_strip
flags to reduce binary size, and the-DLLVM_TARGETS_TO_BUILD=X86
to limit build scope.
203-203
: Document Intel-based macOS runner
Markingmacos-13
explicitly as Intel is helpful for future maintainers, especially as Apple transitions to ARM runners.
286-287
: Set explicit tag and release name for draft releases
Injecting the short commit SHA into bothtag
andrelease_name
ensures unique, reproducible draft releases.
290-290
: Upload all built artifacts with globbing
Thefile_glob: true
andfile: clang-*/**/*
combination will include every generated tool under theclang-*
directories. Looks correct.
Summary by CodeRabbit