-
Notifications
You must be signed in to change notification settings - Fork 83
fix(ci): Use homebrew installed llvm to build clp dependencies in macOS GitHub action runner (fixes #1040). #1044
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
Closed
Closed
Changes from 50 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
f324686
Temporarily remove other workflows
sitaowang1998 a51b899
Add setting of environment variables
sitaowang1998 04cc82a
Revert "Temporarily remove other workflows"
sitaowang1998 0e29499
Bug fix
sitaowang1998 cfad209
Temporarily remove other GH workflows
sitaowang1998 753e555
Add check on PATH variable
sitaowang1998 15f3097
Revert "Add check on PATH variable"
sitaowang1998 55516f5
Use llvm
sitaowang1998 2f7963d
Bug fix
sitaowang1998 0679303
Add llvm library
sitaowang1998 71c0a05
Remove ld flags
sitaowang1998 7d534bf
Revert "Temporarily remove other GH workflows"
sitaowang1998 072482f
Merge branch 'main' into macos-llvm
sitaowang1998 cf2c37b
Experiment with extra clang-tidy flags
sitaowang1998 fa5dfc2
Temporarily remove other GH workflows
sitaowang1998 e2434cb
Revert "Experiment with extra clang-tidy flags"
sitaowang1998 39961b4
Add more environment flags
sitaowang1998 5e9d8c6
Experiment with environment variables
sitaowang1998 9478ae8
Add more experiment with environment variables AR and RANLIB
sitaowang1998 fca4857
Remove environment flags for flags
sitaowang1998 67d2363
Experiment with clang-tidy argument
sitaowang1998 2d82296
Try add llvm to clang-tidy sysroot
sitaowang1998 260b69d
Revert "Try add llvm to clang-tidy sysroot"
sitaowang1998 c91dc84
Not use llvm toolchain in clp
sitaowang1998 693e2d0
Revert "Not use llvm toolchain in clp"
sitaowang1998 234a1f3
Experiment with extra args
sitaowang1998 99cdacc
Remove errno_t=int from clang-tidy flags
sitaowang1998 0f1034a
Bug fix
sitaowang1998 db7cd48
Revert "Temporarily remove other GH workflows"
sitaowang1998 9e2c951
Add rsize clang-tidy flag in all clang-tidy tasks
sitaowang1998 7e528b4
Merge branch 'main' into macos-llvm
sitaowang1998 d80898d
Merge branch 'main' into macos-llvm
sitaowang1998 d7f348f
Merge branch 'main' into macos-llvm
sitaowang1998 fcb664e
Test if setting GITHUB_ENV inside script works
sitaowang1998 e09f0b8
Add check for GITHUB_ENV
sitaowang1998 ba7cd2f
Fix test
sitaowang1998 2ce75bd
Remove test for GITHUB_ENV
sitaowang1998 accd3c4
Add tests for GITHUB_ENV
sitaowang1998 a222074
Temporarily remove all other workflows
sitaowang1998 146dc62
Add GITHUB_ENV check
sitaowang1998 d7ff1cb
Revert "Temporarily remove all other workflows"
sitaowang1998 2bbec2d
Use GITHUB_ACTIONS to check
sitaowang1998 9cf5f4d
Revert "Use GITHUB_ACTIONS to check"
sitaowang1998 b49789f
Fix the spacing and shell equal
sitaowang1998 893aa84
Put constant first when checking variables in shell script
sitaowang1998 c95039c
Temporarily remove other GH workflows
sitaowang1998 b4665a5
Try unset GITHUB_ENV
sitaowang1998 618d297
Revert "Temporarily remove other GH workflows"
sitaowang1998 2516396
Name the workflow step to unset env vars
sitaowang1998 6ddb51d
Move env var to GH workflow steps
sitaowang1998 dcbf362
Bug fix
sitaowang1998 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🛠️ Refactor suggestion
Set LLVM env vars before the
install-all.shcompilation stepinstall-all.sh(lines 71-73) builds several third-party libraries from source.Because the LLVM variables are only exported afterwards (lines 80-90), that script still executes with AppleClang – exactly the scenario this PR is meant to avoid (older AppleClang lacks C++20).
Move the “Set up environment variables for LLVM” step so it precedes any build/compile work (at minimum, before
install-all.shanddeps-download/init.sh).This guarantees every subsequent compilation (dependencies, core, tests) uses the Homebrew LLVM toolchain and resolves the original C++20 build failures.
📝 Committable suggestion
🤖 Prompt for AI Agents