-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add downlaod-wheel.sh to release note #4
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
Conversation
- Fix pipe character usage in shell commands within GitHub Actions expressions - Replace problematic expressions with proper shell variable substitution - Add proper error handling for tool installation step - Fix missing newline before platform override test step
for more information, see https://pre-commit.ci
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.
Pull Request Overview
This PR adds a Python script to automatically download appropriate clang-format and clang-tidy wheels for the current platform, along with comprehensive testing infrastructure and documentation updates.
- Adds
download.pyscript with platform detection and automatic wheel downloading from GitHub releases - Creates comprehensive CI workflow to test the download script across multiple platforms and Python versions
- Updates documentation with quick install instructions and supported platform information
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| download.py | Main Python script that detects platform, fetches GitHub releases, and downloads appropriate wheels |
| README.md | Updated with quick install instructions using the download script and supported platforms table |
| .pre-commit-config.yaml | Added ruff linting and formatting to maintain code quality |
| .github/workflows/test-download.yml | Comprehensive CI workflow to test download script functionality across platforms |
| .github/workflows/release.yml | Updated release workflow to use the new download script in installation instructions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
download.py
Outdated
| return [f"musllinux_1_2_{arch}"] | ||
|
|
||
| elif system == "windows": | ||
| if arch == "amd64" or arch == "x86_64": |
Copilot
AI
Oct 4, 2025
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.
The arch variable has already been normalized using arch_map, so checking for 'amd64' is redundant since it gets mapped to 'x86_64' on line 36.
| if arch == "amd64" or arch == "x86_64": | |
| if arch == "x86_64": |
.github/workflows/release.yml
Outdated
| curl -sSL https://raw.githubusercontent.com/cpp-linter/clang-tools-wheel/feature/main/download.py | python3 - clang-format --version ${{ github.event.inputs.llvm_version }} | ||
| pip install clang-format-*.whl | ||
| # Install clang-tidy | ||
| pip install clang-tidy-${{ github.event.inputs.llvm_version }}-<platform>.whl | ||
| # Download and install clang-tidy | ||
| curl -sSL https://raw.githubusercontent.com/cpp-linter/clang-tools-wheel/feature/main/download.py | python3 - clang-tidy --version ${{ github.event.inputs.llvm_version }} |
Copilot
AI
Oct 4, 2025
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.
The URLs reference 'feature/main' which appears to be an incorrect branch name. This should likely be just 'main'.
.github/workflows/release.yml
Outdated
| curl -sSL https://raw.githubusercontent.com/cpp-linter/clang-tools-wheel/feature/main/download.py | python3 - clang-format --version ${{ github.event.inputs.llvm_version }} | ||
| pip install clang-format-*.whl | ||
| # Install clang-tidy | ||
| pip install clang-tidy-${{ github.event.inputs.llvm_version }}-<platform>.whl | ||
| # Download and install clang-tidy | ||
| curl -sSL https://raw.githubusercontent.com/cpp-linter/clang-tools-wheel/feature/main/download.py | python3 - clang-tidy --version ${{ github.event.inputs.llvm_version }} |
Copilot
AI
Oct 4, 2025
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.
The URLs reference 'feature/main' which appears to be an incorrect branch name. This should likely be just 'main'.
Co-authored-by: Copilot <[email protected]>
No description provided.