Skip to content

Conversation

@shenxianpeng
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 4, 2025
shenxianpeng and others added 4 commits October 4, 2025 22:48
- 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
@shenxianpeng shenxianpeng requested a review from Copilot October 4, 2025 20:02
Copy link
Contributor

Copilot AI left a 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.py script 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":
Copy link

Copilot AI Oct 4, 2025

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.

Suggested change
if arch == "amd64" or arch == "x86_64":
if arch == "x86_64":

Copilot uses AI. Check for mistakes.
Comment on lines 486 to 490
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 }}
Copy link

Copilot AI Oct 4, 2025

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'.

Copilot uses AI. Check for mistakes.
Comment on lines 486 to 490
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 }}
Copy link

Copilot AI Oct 4, 2025

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'.

Copilot uses AI. Check for mistakes.
@shenxianpeng shenxianpeng changed the title feat: add download.py script and test feat: add downlaod-wheel.sh to release note Oct 5, 2025
@shenxianpeng shenxianpeng merged commit e151edf into main Oct 5, 2025
9 checks passed
@shenxianpeng shenxianpeng deleted the feature/add-download-script branch October 5, 2025 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants