Commit 67131da
ci: fix CodeQL build failures by using correct Python version
The CodeQL workflow was failing for Swift and C++ analyses because:
1. The workflow sets up Python 3.12 via actions/setup-python
2. But xcodebuild doesn't inherit this Python in its environment
3. The Makefile uses hardcoded python3 which resolves to Xcode's
bundled Python 3.9
4. This causes build failures when the Makefile is executed during
the Data target build phase
Changes:
- Add Python 3.12 setup step to CodeQL workflow
- Pass PYTHON environment variable to xcodebuild command
- Update Makefile to use $(PYTHON) variable instead of hardcoded
python3
- Allows environment to override Python executable while maintaining
backward compatibility
This ensures CodeQL builds use the correct Python version and fixes
the cascading Swift/C++ build failures.
Fixes: https://github.com/openvanilla/McBopomofo/actions/runs/18998321918
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5634228 commit 67131da
2 files changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | | - | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
0 commit comments