Skip to content

Fix CodeQL c-cpp analysis: switch build-mode from autobuild to none#166

Merged
JeffreyXiang merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-job
Jun 5, 2026
Merged

Fix CodeQL c-cpp analysis: switch build-mode from autobuild to none#166
JeffreyXiang merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 5, 2026

The CodeQL "Analyze (c-cpp)" job was failing because autobuild detected Python setup files and tried executing them — which require torch, unavailable in the CI environment:

ModuleNotFoundError: No module named 'torch'
A fatal error occurred: Exit status 1 from command: [.../codeql/cpp/tools/autobuild.sh]

The C/C++ files (o-voxel/src/) are PyTorch extension modules; they can't be compiled without CUDA/torch.

Change

  • Set build-mode: none for c-cpp in .github/workflows/codeql.yml — CodeQL analyzes the source directly without compilation, bypassing the torch dependency entirely.

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job 'Analyze (c-cpp)' Fix CodeQL c-cpp analysis: switch build-mode from autobuild to none Jun 5, 2026
Copilot AI requested a review from JeffreyXiang June 5, 2026 05:15
@JeffreyXiang JeffreyXiang marked this pull request as ready for review June 5, 2026 05:19
@JeffreyXiang JeffreyXiang merged commit 75fbf01 into main Jun 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants