Skip to content

Commit 1fb7276

Browse files
authored
Fix github actions failure on Windows (#1376)
This PR fixes GitHub Actions failures on Windows by adding explicit Python 3.11 setup to the Windows build and test workflow. The `node-gyp` build tool and ROS2 both require Python to be available, and the `windows-2025` runner apparently doesn't have Python pre-installed or doesn't have the correct version available by default. **Changes:** - Added Python 3.11 setup step before ROS2 installation in the Windows workflow Fix: #1377
1 parent a45c45a commit 1fb7276

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/windows-build-and-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727

28+
- name: Setup Python 3.11
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: '3.11'
32+
2833
- name: Setup ROS2
2934
uses: ros-tooling/setup-ros@v0.7
3035
with:

0 commit comments

Comments
 (0)